Re: grep- how to cut /usr but leave in /usr/local?

From: Green, Simon (SGreen@KRAFTEUROPE.COM)
Date: Fri Oct 25 2002 - 12:16:05 EDT


Or ... grep -v "^/usr$" to be on the safe side; exclude things where /usr is
at both the beginning and end of the line.

Simon Green
Philip Morris ITSC Europe

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will seldom be appreciated.

> -----Original Message-----
> From: Bruce Harvey [mailto:BruceH@ROUTESCAPE.COM]
> Sent: 25 October 2002 16:57
> To: aix-l@Princeton.EDU
> Subject: Re: grep- how to cut /usr but leave in /usr/local?
>
>
> lsvgfs rootvg | grep -v "/usr$"
>
> ... should permit everything except /usr. $ stands for EOR
> (end of record,
> or 'newline')



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:17 EDT