Re: script regular expression

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



THanks all who gave me an answer, i found this doc and helped me. Thanks again

http://mywiki.wooledge.org/DontReadLinesWithFor

 
----------------------------------
Alejandro Rodriguez Luna
E-mail: el_alexluna@xxxxxxxxxxxx
Movil: 044-311-112-86-41
----------------------------------


________________________________
 De: "m.roth@xxxxxxxxx" <m.roth@xxxxxxxxx>
Para: CentOS mailing list <centos@xxxxxxxxxx> 
Enviado: Viernes, 10 de febrero, 2012 9:59:35
Asunto: Re:  script regular expression
 
Steve Brooks wrote:
> On Thu, 9 Feb 2012, 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
>> VeriSign Class 1 CA Individual Subscriber-Persona Not Validated
>>
>>
>> but i got this
>>
>> RSA
>> Secure
<snip>

Sure will. i is in the list RSA Secure etc. and each word is a member of
the list, separated by whitespace. Y'know, it would be a lot easier to do
awk '{print $0;}' certificates.txt, which would be exactly what you want.

       mark


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux