Re: need SIMPLE grep piping examples

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

 



On Friday 26 March 2004 15:04, Thiers Botelho wrote:
> All I need to do right now is something like:
>
> df -m | grep [ 'ilesystem' , '/dev/foobar' ]
>
> (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



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

  Powered by Linux