[Linux-disciples] Grep oddity

Adam Rosi-Kessel adam at rosi-kessel.org
Fri Apr 15 13:23:16 EDT 2005


Stephen R Laniel wrote:
>>Yes, it's because stderr is different from stdout.
>>Add 2>&1 and your problem will be solved.
> Well, I did have that, but ...

Your 2>&1 was in the wrong place--it should have been after the ls
command, not after the grep command.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050415/00889757/signature.pgp


More information about the Linux-disciples mailing list