Re: grep/sed help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



>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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux