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

Re: Bash Script regular expression



while read line;
do
        echo $line
done < rsa


2012/2/10 Alejandro Rodriguez Luna <el_alexluna@yahoo.com.mx>
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
Server
Certification
Authority
VeriSign
Class
1
CA
Individual
Subscriber-Persona
Not
Validated

 any ideas how to fix this? i mean, how can i get the whole line instead of word by word?
 
----------------------------------
Alejandro Rodriguez Luna
E-mail: el_alexluna@yahoo.com.mx
Movil: 044-311-112-86-41
----------------------------------



--
esta es mi vida e me la vivo hasta que dios quiera

Reply to: