Hello group:
sorry if this if off topic or not vimish question.

I have a 2GB file and the data is in chunks.  Sample of it is given below.

I want to be able to select the number that follows 'Elution: ' (say
72.958) and check if it is larger than my choice of number (say
24.535). If it is then I want to print chunk from BEGIN LINE to END
LINE separated by one empty line.

Is there a way to use any fast unix commands on this. I can write
script in python but want to make use of unix tools.
Thanks for your input.




BEGIN LINE
MYMASS=643.973587067287
CHARGE=2+
Title=File:xyx, sample= Cyst 7 band 7 (sample number 8), Elution:
72.958 to 73.198 min, Period: 1
132.4082 0.0323
133.0418 0.2596
136.0618 0.3276
138.0482 0.546
140.4848 0.0499
140.7096 0.0333
END LINE

BEGIN LINE
MYMASS=643.973587067287
CHARGE=2+
Title=File:xyx, sample= Cyst 7 band 7 (sample number 8), Elution:
72.958 to 73.198 min, Period: 1
132.4082 0.0323
133.0418 0.2596
136.0618 0.3276
138.0482 0.546
140.4848 0.0499
140.7096 0.0333
END LINE

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to