look for two consecutive lines in all text files
- From: albert kao <albertkao3@xxxxxxxxx>
- Date: Thu, 2 Sep 2010 08:43:45 -0700 (PDT)
How to get (a list of) all the text files in the current directory and
subdirectories which has the following two consecutive lines:
ctrl_end_date=2009
ctrl_process=EXPIRED
OR
ctrl_end_date=2010
ctrl_process=EXPIRED
i.e.
(ctrl_end_date=2009 OR ctrl_end_date=2010)
AND
ctrl_process=EXPIRED
.
- Follow-Ups:
- Re: look for two consecutive lines in all text files
- From: albert kao
- Re: look for two consecutive lines in all text files
- Prev by Date: Re: Weirdest shell behavior ever...
- Next by Date: Re: look for two consecutive lines in all text files
- Previous by thread: complicated exclude option in find command
- Next by thread: Re: look for two consecutive lines in all text files
- Index(es):