[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep: pipe symbol doesn't work
From: |
Hans-Bernhard Broeker |
Subject: |
Re: grep: pipe symbol doesn't work |
Date: |
22 Feb 2002 11:39:50 GMT |
Stephen Cox <address@hidden> wrote:
> I apologise in advance because I am sure that this must be an FAQ, but I
> cannot make the disjunction operator (i.e. pipe = "|") work in Gnu grep as
> implemented on my Windows 98 PC.
The problem most probably is caused by your command shell
(COMMAND.COM, I assume) seeing the | character and deciding that you
want to pipe from one command to another. You'll have to use *double*
quotes to avoid that interpretation, in command.com:
egrep "a|b" myfile.txt
Single quotes don't mean a thing to command.com.
--
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.