[KLUG Members] Re: grep, egrep, fgrep

Robert G. Brown members@kalamazoolinux.org
Thu, 06 May 2004 11:06:24 -0400


On Thu, 06 May 2004 10:57:51 -0400, Adam Tauno Williams <adam@morrison-ind.com> wrote:

>> > IMO, yes. I do it with success:  ls -l |grep \.s
>> ls -l | grep \\.s
>
>You actually don't need to "-1",  ls smells that its stdout is bieng
>grabbed and reverts to that mode automatically.  
Eh? Not in my experience. What I do see is that ls|grep.... will output
stuff one line at a time, if that's what you mean.

>But it isn't a bad idea to just do it anyway.
Especially if you want the added info that -l gets! :)

							Regards,
							---> RGB <---