filename substitution question

Stephen J. Friedl friedl at vsi.COM
Thu Apr 6 00:00:32 AEST 1989


[ how do we list all files *except* mentioned ones? ]

In article <15131 at bellcore.bellcore.com>, tr at madeleine.ctt.bellcore.com (tom reingold) writes:
> While everyone's solutions have been more elegant than mine, I think
> I should post the most obvious one.
> 
> 	ls | grep -v frog.c
> 

Be careful here.  Many versions of ls columnize their output, so
the above will exclude everything that appears on the same line
as the mentioned file.  This can happen either by ls's default action
or by aliases or shell functions defined by {/etc/,.}profile.

     Steve

-- 
Stephen J. Friedl / V-Systems, Inc. / Santa Ana, CA / +1 714 545 6442 
3B2-kind-of-guy   / friedl at vsi.com  / {attmail, uunet, etc}!vsi!friedl

"I do everything in software, even DMA" - Gary W. Keefe (garyk at telxon)



More information about the Comp.unix.wizards mailing list