Get value from a text file and do calculation in UNIX environment

view story

http://stackoverflow.com – In unix shell, I have a txt file (Price.txt) that contain following information: Buy value: 15 Sell value: 30 May I know how to use the command that can grep the buy value and sell value(in integer) and then do the difference between them, store in a new variable? (HowTos)