Re: LS in a script file

2017-04-04 Thread Cameron Simpson
Or... for f in *.bib do case "$f" in *-e.bib) ;; *)ls -ld -- "$f" ;; esac done On 04Apr2017 15:40, Rick Stevens wrote: On 04/04/2017 03:35 PM, Rick Stevens wrote: On 04/04/2017 02:35 PM, Patrick Dupre wrote: Sorry for the lack for clarity. I want to list all the file e

Re: LS in a script file

2017-04-04 Thread Gordon Messmer
On 04/04/2017 03:17 PM, Patrick Dupre wrote: 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. No, it does not help Ah. You have to set the extglob option, as documented

Re: LS in a script file

2017-04-04 Thread Patrick Dupre
Yes, Very good === Patrick DUPRÉ | | email: pdu...@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

Re: LS in a script file

2017-04-04 Thread Rick Stevens
On 04/04/2017 03:35 PM, Rick Stevens wrote: > On 04/04/2017 02:35 PM, Patrick Dupre wrote: >> Hello, >> >> Sorry for the lack for clarity. >> 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 >>

Re: LS in a script file

2017-04-04 Thread Rick Stevens
On 04/04/2017 02:35 PM, Patrick Dupre wrote: > Hello, > > Sorry for the lack for clarity. > 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 > > but, as soon as I put one o

Re: LS in a script file

2017-04-04 Thread Joe Zeff
On 04/04/2017 02:35 PM, Patrick Dupre wrote: Sorry for the lack for clarity. 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 ls -d *.bib | grep -v -e.bib HTH, HAND. ___

Re: LS in a script file

2017-04-04 Thread Dave Stevens
On Tue, 4 Apr 2017 15:10:44 -0700 Gordon Messmer 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 > > N

Re: LS in a script file

2017-04-04 Thread Patrick Dupre
> 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 comm

Re: LS in a script file

2017-04-04 Thread Patrick Dupre
OK, Thank, it work fine, I can even use ls *.bib | grep === Patrick DUPRÉ | | email: pdu...@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale

Re: LS in a script file

2017-04-04 Thread Gordon Messmer
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

Re: LS in a script file

2017-04-04 Thread Ed Greshko
On 04/05/17 05:56, JD wrote: > locate .bib | grep -v '\-e.bib' "locate" is probably inappropriate if the files in question are created dynamically since locate depends on a database which is usually only updated once per day. -- Fedora Users List - The place to go to get others to do the work

Re: LS in a script file

2017-04-04 Thread JD
On 04/04/2017 03:35 PM, Patrick Dupre wrote: Hello, Sorry for the lack for clarity. 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 but, as soon as I put one of these commands

Re: LS in a script file

2017-04-04 Thread Patrick Dupre
Hello, Sorry for the lack for clarity. 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 but, as soon as I put one of these commands in a script file, it does not work Is it clear?

Re: LS in a script file

2017-04-04 Thread JD
On 04/04/2017 02:57 PM, JD wrote: On 04/04/2017 02:34 PM, Patrick Dupre wrote: find . !(*@(-e)).bib and ls -d !(*@(-e)).bib work fine in a command line, but never in a script command substitution: line 9: syntax error near unexpected token `(' ls -d !\(*@\(-e\)\).bib does not work ===

Re: LS in a script file

2017-04-04 Thread JD
On 04/04/2017 02:34 PM, Patrick Dupre wrote: find . !(*@(-e)).bib and ls -d !(*@(-e)).bib work fine in a command line, but never in a script command substitution: line 9: syntax error near unexpected token `(' ls -d !\(*@\(-e\)\).bib does not work =

Re: LS in a script file

2017-04-04 Thread Terry Polzin
On Tue, Apr 4, 2017 at 4:34 PM, Patrick Dupre wrote: > find . !(*@(-e)).bib > and > ls -d !(*@(-e)).bib > > > > work fine in a command line, but never > in a script > command substitution: line 9: syntax error near unexpected token `(' > > ls -d !\(*@\(-e\)\).bib > > does not work > > ===

Re: LS in a script file

2017-04-04 Thread Patrick Dupre
find . !(*@(-e)).bib and ls -d !(*@(-e)).bib work fine in a command line, but never in a script command substitution: line 9: syntax error near unexpected token `(' ls -d !\(*@\(-e\)\).bib does not work === Patrick DUPRÉ

Re: LS in a script file

2017-04-04 Thread Patrick Dupre
=== Patrick DUPRÉ | | email: pdu...@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

Re: LS in a script file

2017-04-04 Thread Terry Polzin
On Tue, Apr 4, 2017 at 3:43 PM, Pete Travis wrote: > Do not parse ls. Make a find invocation, ie `find /path/ -not -name > $pattern`. > > -- Pete > > On Apr 4, 2017 1:05 PM, "Patrick Dupre" wrote: > >> Hello, >> >> How can I put this command in a script file? >> FILES=`ls -d !(*@(-e)).bib` >> >

Re: LS in a script file

2017-04-04 Thread Antonio Olivares
On Tuesday, April 4, 2017 3:02 PM, Patrick Dupre wrote: === Patrick DUPRÉ | | email: pdu...@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

Re: LS in a script file

2017-04-04 Thread Patrick Dupre
  === Patrick DUPRÉ | | email: pdu...@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 | | 5914

Re: LS in a script file

2017-04-04 Thread Pete Travis
Do not parse ls. Make a find invocation, ie `find /path/ -not -name $pattern`. -- Pete On Apr 4, 2017 1:05 PM, "Patrick Dupre" wrote: > Hello, > > How can I put this command in a script file? > FILES=`ls -d !(*@(-e)).bib` > > I get an error because of the ( > >

Re: LS in a script file

2017-04-04 Thread Antonio Olivares
On Tuesday, April 4, 2017 1:05 PM, Patrick Dupre 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É                         

Re: LS in a script file

2017-04-04 Thread JD
On 04/04/2017 12:13 PM, Terry Polzin wrote: 2017-04-04 14:05 GMT-04:00 Patrick Dupre >: 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

Re: LS in a script file

2017-04-04 Thread Terry Polzin
2017-04-04 14:05 GMT-04:00 Patrick Dupre : > 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` ___ users mailing

LS in a script file

2017-04-04 Thread Patrick Dupre
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: pdu...@gmx.com Laboratoire de Physico-Chimie de l

Re: some log error messages

2017-04-04 Thread stan
On Tue, 4 Apr 2017 14:23:52 +0200 François Patte wrote: > What is the meaning of these error/warning messages (f25) and how to > correct the config to get rid of them: > > -- LVM > Daemon lvmetad returned error 104: 1 Time(s) > WARNING: Failed to connect to lvmetad. Falling back to device > scan

Re: DHCP and resolv.conf

2017-04-04 Thread Ed Greshko
On 04/04/17 21:49, Ed Greshko wrote: > But I wonder if it would then conflict or > confuse NetworkManager if you then try to use the GUI to manipulate the > search parameter. > Looks like it doesn't. NetworkManager handles it quite nicely. I stand, OK sit, corrected. -- Fedora Users List - Th

Re: DHCP and resolv.conf

2017-04-04 Thread Ed Greshko
On 04/04/17 21:41, Terry Polzin wrote: > > > On Tue, Apr 4, 2017 at 9:25 AM, Tom Horsley > wrote: > > On Tue, 4 Apr 2017 13:03:37 +0100 > Tethys wrote: > > > ; generated by /usr/sbin/dhclient-script > > You are no doubt reading docs for the pre-Network

Re: DHCP and resolv.conf

2017-04-04 Thread Terry Polzin
On Tue, Apr 4, 2017 at 9:25 AM, Tom Horsley wrote: > On Tue, 4 Apr 2017 13:03:37 +0100 > Tethys wrote: > > > ; generated by /usr/sbin/dhclient-script > > You are no doubt reading docs for the pre-NetworkManager universe > and the NetworkManager universe is utterly and totally incompatible > (it w

Cockpit and firewalld

2017-04-04 Thread Robert Moskowitz
Can cockpit manage firewalld rules? I did not see anyway to do it on a recent server setup. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org

Re: DHCP and resolv.conf

2017-04-04 Thread Ed Greshko
On 04/04/17 21:25, Tom Horsley wrote: > On Tue, 4 Apr 2017 13:03:37 +0100 > Tethys wrote: > >> ; generated by /usr/sbin/dhclient-script > You are no doubt reading docs for the pre-NetworkManager universe > and the NetworkManager universe is utterly and totally incompatible > (it wouldn't be shiny i

Re: DHCP and resolv.conf

2017-04-04 Thread Tom Horsley
On Tue, 4 Apr 2017 13:03:37 +0100 Tethys wrote: > ; generated by /usr/sbin/dhclient-script You are no doubt reading docs for the pre-NetworkManager universe and the NetworkManager universe is utterly and totally incompatible (it wouldn't be shiny if it did anything the same way). Just glancing a

Re: DHCP and resolv.conf

2017-04-04 Thread Tim
Allegedly, on or about 04 April 2017, Tethys sent: > Does anyone have any ideas on what I can do to achieve what I want? Are you directly editing configuration files because you want to do things that way? If not, you're supposed to be able to add parameters to the configurations that NetworkMan

some log error messages

2017-04-04 Thread François Patte
What is the meaning of these error/warning messages (f25) and how to correct the config to get rid of them: -- LVM Daemon lvmetad returned error 104: 1 Time(s) WARNING: Failed to connect to lvmetad. Falling back to device scanning.: 2 Time(s) WARNING: lvmetad is being updated, retrying (setup) for

Re: F24 not recognizing USB drives

2017-04-04 Thread Robert Moskowitz
I will tag this message for in case it happens again. thanks On 04/04/2017 07:17 AM, Rami Rosen wrote: Hi, Robert, Do you see any errors related to USB or /dev/sdb when running tail -n 1000 /var/log/messages ? if you do - can you post them here please ? One option I would consider to try is

DHCP and resolv.conf

2017-04-04 Thread Tethys
I have a resolv.conf that says: ; generated by /usr/sbin/dhclient-script That's fine. But I need to add a custom domain to my search path that isn't supplied by the DHCP server. According to the documentation, adding the following to /etc/dhcp/dhclient.conf should be enought to do this: interfac

Re: F24 not recognizing USB drives

2017-04-04 Thread Rami Rosen
Hi, Robert, Do you see any errors related to USB or /dev/sdb when running tail -n 1000 /var/log/messages ? if you do - can you post them here please ? One option I would consider to try is (assuming your main hard disk is *not* a USB device but ordinary SATA ) to rmmod and modprobe the USB disk