Do not parse ls.  Make a find invocation, ie `find /path/ -not -name $pattern`.

-- Pete

On Apr 4, 2017 1:05 PM, "Patrick Dupre" <pdupre@gmx.com> wrote:
Hello,

How can I put this command in a script file?
FILES=`ls -d !(*@(-e)).bib`

I get an error because of the (

===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===========================================================================
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org