Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: scripting - cat breaking line

From: L.V.Gandhi <lvgandhi(at)gmail.com>
Date: Sat Jun 23 2007 - 21:43:19 EDT


On 6/23/07, Wu-Kung Sun <sunwukung@gmail.com> 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 lvgandhi@lvgvaio:~$ for line in "$(cat temp1)";do echo "20070622,$line">>temp2 ;done
lvgandhi@lvgvaio:~$ 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
lvgandhi@lvgvaio:~$
I think ever line breaks are not considered.
-- 
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042



-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Sat Jun 23 21:43:35 2007

This archive was generated by hypermail 2.1.8 : Sat Jun 23 2007 - 21:50:02 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library