[buug] Grep command

Pong-TC pong at taft.org
Fri Sep 19 07:20:23 PDT 2003


"Clarke, John" <John.Clarke at libertymutual.com> writes:
>Ha all, 
>I want to grab data from either side of a matched criteria from grep. 
>Any one got any other ideas of a command and if it does work please tell
>me what OS and version and what shell.  Also if anyone does do this how
>do you just get lines below or lines above the match rather than both.
>
>This is what I am trying to do 

I am not good, but I think you can do this.  YOu can do it with grep. 
grep D -v, this will give you the another result set.   YOu can try this 

ls -la | grep d -v

You will get the list of file, except the directories.

Pong




More information about the buug mailing list