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:48:57 EDT


On 6/23/07, - Tong - <mlist4suntong@yahoo.com> wrote:
>
> Wu-Kung Sun, have solve the line breaking problem.
>
> Now something else.
>
> On Sat, 23 Jun 2007 14:23:34 -0700, L.V.Gandhi wrote:
>
> > lvgandhi@lvgvaio:~/stock$ for line in $(cat temp1);do echo
> > "20070622,$line">>temp2 ;done
>
> FYI, the best approach for your above is to use sed, which can still
> maintain lighting speed even the "temp1" is 1g or 10g in size:
>
> sed 's/^/20070622,/' temp1 >> temp2
>
> Thanks for your reply.

Wu-Kung Sun's reply didn't produce desired result. However your advice gave desired result.

-- 
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:49:29 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