Adrian Johnson wrote: > 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.
Hello, Adrian. I don't know if I understand your problem completely. Try this Perl line with your file as input and see if it helps: perl -00 -nle 'print if /Elution:\s*([\d.]+)/ && $1 > 24.535' -- 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
