Re: LS in a script file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
 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
===========================================================================


> Sent: Tuesday, April 04, 2017 at 10:06 PM
> From: "Antonio Olivares" <olivares14031@xxxxxxxxx>
> To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
> Subject: Re: LS in a script file
>
> 
> 
> 
> 
> On Tuesday, April 4, 2017 3:02 PM, Patrick Dupre <pdupre@xxxxxxx> wrote:
> 
> 
> 
> 
>  
> ===========================================================================
> Patrick DUPRÉ | | email: pdupre@xxxxxxx
> 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
> ===========================================================================
>   
>   
> Sent: Tuesday, April 04, 2017 at 8:45 PM
> From: "Antonio Olivares" <olivares14031@xxxxxxxxx>
> To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
> Subject: Re: LS in a script file
>  
> 
>  
> On Tuesday, April 4, 2017 1:05 PM, Patrick Dupre <pdupre@xxxxxxx> 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@xxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>  
>  
> Try adding a "\" before the "(" and see if it works?
>  
> > It tried, but same result.
>  
> Best Regards,
>  
>  
> Antonio
>  
> _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> 
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 
> Did you try JD's suggestion?  ie., 
> 
> 
> ls `[ ! \(*@\(-e\)\).bib ]`
> ?
> 
This "works" (no error), but it does not make the job of
ls -d !(*@(-e)).bib


> Hope it works!
> 
> Best Regards,
> 
> 
> 
> Antonio 
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux