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

From: Bruce Harvey (BruceH@ROUTESCAPE.COM)
Date: Fri Oct 25 2002 - 12:27:24 EDT


Yep (I stand corrected), as well as adding it to the rest of the items in my
followup. It'll be needed for the "/" removal, especially, i.e.,

        lsvgfs rootvg | egrep -v "^/$|^/tmp$|^var$|^/usr$"

Of course, if anyone has a filesystem ending in /usr that isn't /usr,
they've probably already run into _that_ grep problem. ;-)

---------------------------------------
Bruce T. Harvey, Special Projects Developer
bruceh@routescape.com, www.routescape.com
Insight Distribution Systems --- Hunt Valley, MD

-----Original Message-----
From: Green, Simon [mailto:SGreen@KRAFTEUROPE.COM]
Sent: Friday, October 25, 2002 12:16 PM
To: aix-l@Princeton.EDU
Subject: Re: [aix-l] grep- how to cut /usr but leave in /usr/local?

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