[CentOS] grep/sed help

Joseph L. Casale JCasale at activenetwerx.com
Wed Jun 10 19:35:28 UTC 2009


>If the line counts are constant you could do the reverse:
>
>grep -B 3 "\(E:\|D:\)" input.txt  | grep Shadow

Now that's cool, each case has to be separate so
grep -B 3 "D:" input.txt or even the actual volume string for
certainties sake is the ticket!

Thanks Nate and Bill!
jlc



More information about the CentOS mailing list