<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    On 02/10/2012 11:50 AM, Mikkel L. Ellertson wrote:<br>
    <span style="white-space: pre;">&gt;</span><br>
    <blockquote type="cite">On 02/10/2012 11:07 AM, Aaron Konstam wrote:<br>
      &gt; On Thu, 2012-02-09 at 23:31 -0800, Alejandro Rodriguez Luna
      wrote:<br>
      &gt;&gt; Hi everyone, I was creating a script and i found
      something i can't<br>
      &gt;&gt; figure out.<br>
      &gt;&gt;<br>
      &gt;&gt; #/bin/bash<br>
      &gt;&gt; for i in $(cat certificates.txt)<br>
      &gt;&gt; do<br>
      &gt;&gt; echo $i<br>
      &gt;&gt; done<br>
      &gt;&gt;<br>
      &gt;&gt; I expected this<br>
      &gt;&gt;<br>
      &gt;&gt; RSA Secure Server Certification Authority<br>
      &gt;&gt; VeriSign Class 1 CA Individual Subscriber-Persona Not
      Validated<br>
      &gt;&gt;<br>
      &gt;&gt;<br>
      &gt;&gt; but i got this<br>
      &gt;&gt;<br>
      &gt;&gt; RSA<br>
      &gt;&gt; Secure<br>
      &gt;&gt; Server<br>
      &gt;&gt; Certification<br>
      &gt;&gt; Authority<br>
      &gt;&gt; VeriSign<br>
      &gt;&gt; Class<br>
      &gt;&gt; 1<br>
      &gt;&gt; CA<br>
      &gt;&gt; Individual<br>
      &gt;&gt; Subscriber-Persona<br>
      &gt;&gt; Not<br>
      &gt;&gt; Validated<br>
      &gt;&gt;<br>
      &gt;&gt; any ideas how to fix this? i mean, how can i get the
      whole line<br>
      &gt;&gt; instead of word by word?<br>
      <br>
      Try adding:<br>
      <br>
      IFS=<br>
      <br>
      before the do command and see if that does it for you.<br>
      <br>
      Mikkel<br>
    </blockquote>
    <br>
    <span style="white-space: pre;">&gt;</span><br>
    <br>
    Can't do it directly in front of the do statement, but if you put it
    in front of the whole if statement, then the parsing works.&nbsp; *Now* I
    have to research what that is doing!&nbsp; Thanks for making me learn
    something today!&nbsp; :-)<br>
    <br>
    Kevin<br>
  </body>
</html>