On 04/04/2017 12:13 PM, Terry Polzin wrote:
2017-04-04 14:05 GMT-04:00 Patrick Dupre <pdupre@xxxxxxx
<mailto:pdupre@xxxxxxx>>:
Hello,
How can I put this command in a script file?
FILES=`ls -d !(*@(-e)).bib`
I get an error because of the (
Have you tried to "escape" them
FILES=`ls -d !\(*@\(-e\)\).bib`
For me, it works under bash like this:
ls `[ ! \(*@\(-e\)\).bib ]`
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx