Re: bash script regular expression

2012-02-14 Thread Patrick O'Callaghan
Kindly don't hijack threads. When you have a new topic, compose a *new* message, don't just reply to an existing one as it screws up the list threading. Changing the Subject line does not make this OK. poc -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription

Re: bash script regular expression

2012-02-10 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/10/2012 01:17 PM, Kevin Martin wrote: > > > On 02/10/2012 11:50 AM, Mikkel L. Ellertson wrote: > > >> On 02/10/2012 11:07 AM, Aaron Konstam wrote: >> > On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna wrote: >> >> Hi everyone, I was c

Re: bash script regular expression

2012-02-10 Thread gerrynix
Hi everyone, I was creating a script and i found something i can't figure out. #/bin/bash # ADD THE NEXT TWO LINES AS THE FIRST LINES BEFORE the for STATEMENT BEGINS # There must be a new line (press Enter key) after the first single quote IFS=' ' for i in $(cat certificates.txt) do      ech

Re: bash script regular expression

2012-02-10 Thread Kevin Martin
On 02/10/2012 11:50 AM, Mikkel L. Ellertson wrote: > > On 02/10/2012 11:07 AM, Aaron Konstam wrote: > > On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna wrote: > >> Hi everyone, I was creating a script and i found something i can't > >> figure out. > >> > >> #/bin/bash > >> for i in $(

Re: bash script regular expression

2012-02-10 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/10/2012 11:07 AM, Aaron Konstam wrote: > On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna wrote: >> Hi everyone, I was creating a script and i found something i can't >> figure out. >> >> #/bin/bash >> for i in $(cat certificates.txt)

Re: bash script regular expression

2012-02-10 Thread Kevin Martin
On 02/10/2012 11:07 AM, Aaron Konstam wrote: > On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna wrote: >> Hi everyone, I was creating a script and i found something i can't >> figure out. >> >> #/bin/bash >> for i in $(cat certificates.txt) >> do >> echo $i >> done >> >> I expe

Re: bash script regular expression

2012-02-10 Thread Aaron Konstam
On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna wrote: > Hi everyone, I was creating a script and i found something i can't > figure out. > > #/bin/bash > for i in $(cat certificates.txt) > do > echo $i > done > > I expected this > > RSA Secure Server Certification Authority

Re: bash script regular expression

2012-02-10 Thread John Mellor
On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna wrote: > . . . > #/bin/bash > for i in $(cat certificates.txt) > do > echo $i > done The problem is caused by the expected behaviour of the $(cat) construct being fed into a for loop. It will use the current word separator to spli

Re: bash script regular expression

2012-02-10 Thread NOSpaze
On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna wrote: > I expected this > RSA Secure Server Certification Authority > VeriSign Class 1 CA Individual Subscriber-Persona Not Validated > but i got this > RSA > Secure > Server > Certification > Authority > VeriSign > Class > 1 > CA > Indiv

Re: bash script regular expression

2012-02-09 Thread fedora
#!/bin/bash while read a ; do echo "$a" done < certificates.txt suomi On 02/10/2012 08:31 AM, Alejandro Rodriguez Luna wrote: RSA Secure Server Certification Authority VeriSign Class 1 CA Individual Subscriber-Persona Not Validated -- users mailing list users@lists.fedoraproject.org To unsub

bash script regular expression

2012-02-09 Thread Alejandro Rodriguez Luna
Hi everyone, I was creating a script and i found something i can't figure out. #/bin/bash for i in $(cat certificates.txt) do      echo $i done I expected this RSA Secure Server Certification Authority VeriSign Class 1 CA Individual Subscriber-Persona Not Validated but i got this RSA Secure