Basic Grep Question
taharka
res00vl8 at alltel.net
Tue Mar 13 18:09:12 UTC 2007
How do,
On Tue, 2007-03-13 at 15:42 +0000, Dan Track wrote:
> Hi
>
> Could someone please tell me how I can grep for two or more different
> words in one command instead of piping them through.
>
> e.g I don't want to do
>
> cat /tmp/file | grep -v cat | grep -v grey
>
> I'd like to run that from one grep command.
#egrep 'cat|grey' /tmp/file works for me.
> Many Thanks
> Dan
taharka
Lexington, Kentucky U.S.A.
More information about the fedora-list
mailing list