Re: need SIMPLE grep piping examples

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

 



On Fri, 26 Mar 2004 16:08:00 +0200 Mihai Maties <mihai xcyb org>  wrote:

|On Friday 26 March 2004 15:04, Thiers Botelho wrote:
|>
|> (I need to show any line containing _either_ of the strings)
|>
|> so that a script could output just the header line of 'df' plus the 
single
|> line describing '/dev/foobar' below it.
|
|df -m|grep -E 'Filesystem|/dev/foobar'
|or
|df -m|egrep 'Filesystem|/dev/foobar'
|
|
|Mihai

Thnx a lot.     :))

I'd never have thought of '-E' by myself, since I thought it was meant 
only for regular expressions (I'm not quite ready for this stuff yet). . .

Thiers



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux