On Thu, Oct 22, 2009 at 11:22 PM, Gonen Shoham <[email protected]> wrote: > I have a CMS file in which I need to delete lines that meet specific > criteria. > > For example - > > Delete all line where (word,1) = 'XX' and (word,2) = 'YY' > > > Can someone suggest a way to perform this task using PIPES ?
Deleting lines is only through writing the file again, but skip the unwanted lines. PIPE < input file | not pick w1-2 == ,XX YY, | > output file a This is very much cheating, because it exploits the fact that your check words are adjacent. For a general approach to handle more complicated criteria you would need to look at multi-stream pipelines Rob
