|
|||||||||||
|
Re: scripting - cat breaking line
From: - Tong - <mlist4suntong(at)yahoo.com>
Date: Sat Jun 23 2007 - 20:45:38 EDT
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 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 -- Tong (remove underscore(s) to reply) http://xpt.sf.net/techdocs/ http://xpt.sf.net/tools/ -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Sat Jun 23 20:46:20 2007 This archive was generated by hypermail 2.1.8 : Sat Jun 23 2007 - 20:50:02 EDT |
||||||||||
|
|||||||||||