On Tue, 4 Apr 2017 15:10:44 -0700
Gordon Messmer <gordon.mess...@gmail.com> wrote:

> On 04/04/2017 02:35 PM, Patrick Dupre wrote:
> > I want to list all the file end in .bib, except the file ending by
> > -e.bib This can be done by (from the shell command)
> > ls -d !(*@(-e)).bib
> > or by
> > find . !(*@(-e)).bib  
> 
> Note that "find" doesn't support that syntax.  The find command only 
> works because your shell is expanding the wildcard and passing the 
> expanded filenames as arguments to find, rather than the pattern.
> 
> > but, as soon as I put one of these commands in a script file, it
> > does not work  
> 
> I would imagine that you're using "#!/bin/sh" as the first line in
> the script, and bash is working in POSIX mode.  Try using
> "#!/bin/bash" as the first line in the script.



and why not remove the imagining by posting the script?

D

> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org



-- 
In modern fantasy (literary or governmental), killing people is the
usual solution to the so-called war between good and evil. My books are
not conceived in terms of such a war, and offer no simple answers to
simplistic questions.

----- Ursula Le Guin
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to