El sáb, 23-06-2007 a las 18:43 -0700, L.V.Gandhi escribió:
> On 6/23/07, Wu-Kung Sun <[EMAIL PROTECTED]> wrote:
>         The bash manpage says "If the substitution appears within
>         double
>         quotes, word splitting and pathname expansion are not
>         performed on the
>         results."  So try "$(cat temp1)"
>         -
> Thanks for the reply. However result was 
> [EMAIL PROTECTED]:~$ for line in "$(cat temp1)";do echo "20070622,
> $line">>temp2 ;done
> [EMAIL PROTECTED]:~$ cat temp2
> 20070622,3IINFOTECH,3I INFOTECH LTD.,       304.00,       307.95,
> 302.60,       305.55,184687
> 3MINDIA,3M INDIA LIMITED,      1785.00,      1823.00,      1760.00,
> 1819.50,1464
> [EMAIL PROTECTED]:~$
> I think ever line breaks are not considered.
> 

Look for the IFS variable in the bash manpage.


-- 
Gabriel Parrondo
GNU/Linux User #404138
GnuPG Public Key ID: BED7BF43
JID: [EMAIL PROTECTED]

"The only difference between theory and practice is that, in theory, there's no 
difference between theory and practice."

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to