On Wed, 27 Aug 2003 12:45:45 +0200, Udo Rader wrote: >Am Wed, 27 Aug 2003 01:10:59 +0000 schrieb Matthew O. Persico: >>On Sun, 24 Aug 2003 00:29:33 +0200, jipe wrote: >>>> >>>> >>>one easy way ... >>> >>>GLOBIGNORE="no_not_this_one" >>> >>>then any glob like * will ignore this file >>> >>>bye >>>jipe >>> >>> >>> >>YIKES! Why use estoeric, shell specific stuff when the proper >>application of STANDARD (cross-shell) command will do: >> >>cd TheDirectory >>cp `ls -c1 | grep -v TheFileToExclude >because >1) I asked for a shell specific solution (=> we're talking about >bash, >aren't we?)
Point taken >2) modifying file globbing is much less overhead than having to >invoke two extra commands Point taken >3) modifiying file globbing has the advantage that this works for all >other commands that use the globbing features - which is IMHO very >useful. If you ALWAYS want to ignore the file. Can GLOBIGNORE take a regexp or a list of patterns to ignore? >happy hacking. >udo -- Matthew O. Persico
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com