Am Samstag, 23. August 2003 04:21 schrieb David Guntner:
> Udo Rader grabbed a keyboard and wrote:
> > If it were, some construct like the thing below could then list all
> > files in "/opt/too_many_files" except "no_not_this_one":
> >
> > % ls -l /opt/too_many_files/*{!no_not_this_one}
> >
> > Yes, I know this doesn't work, but is there any other efficient way
> > to do this in bash?
>
> ls -la /opt/too_many_files | sed '/not this one/d'
>
> --Dave
Or ls -la /opt/too_many_files | grep -v "no_not_this_one" , since here
the complete line containing no_not_this_one is deleted. man bash and
some playing around may help too
!(no_not_this_one) ??
Steffen
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com