--- On Fri, 2/10/12, Alejandro Rodriguez Luna <el_alexluna@xxxxxxxxxxxx> wrote: > From: Alejandro Rodriguez Luna <el_alexluna@xxxxxxxxxxxx> > Subject: script regular expression > To: "CentOS mailing list" <centos@xxxxxxxxxx> > Date: Friday, February 10, 2012, 1:29 AM > 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? Try: while read i;do echo $i;done < certificates.txt Thanks Sheraz _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos