Re: scripting - cat breaking line

2007-07-09 Thread Michelle Konzack
Am 2007-06-24 22:24:56, schrieb s. keeling: > L.V.Gandhi <[EMAIL PROTECTED]>: > > --=_Part_150443_25730719.1182692831198 > > Content-Type: text/plain; charset=UTF-8; format=flowed > > Content-Transfer-Encoding: base64 > > Content-Disposition: inline > > > > > > T24gNi8yMy8wNywgR2FicmllbC

Re: scripting - cat breaking line

2007-06-24 Thread L . V . Gandhi
On 6/24/07, s. keeling <[EMAIL PROTECTED]> wrote: L.V.Gandhi <[EMAIL PROTECTED]>: > --=_Part_150443_25730719.1182692831198 > Content-Type: text/plain; charset=UTF-8; format=flowed > Content-Transfer-Encoding: base64 > Content-Disposition: inline > > T24gNi8yMy8wNywgR2FicmllbCBQYXJyb25kby

Re: scripting - cat breaking line

2007-06-24 Thread s. keeling
L.V.Gandhi <[EMAIL PROTECTED]>: > --=_Part_150443_25730719.1182692831198 > Content-Type: text/plain; charset=UTF-8; format=flowed > Content-Transfer-Encoding: base64 > Content-Disposition: inline > > T24gNi8yMy8wNywgR2FicmllbCBQYXJyb25kbyA8Zy5wYXJyb25kb0BnbWFpbC5jb20+IHdyb3Rl > Ogo+Cj4gR

Re: scripting - cat breaking line

2007-06-24 Thread L . V . Gandhi
On 6/24/07, Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: On 23.06.07 14:23, L.V.Gandhi wrote: > Subject: scripting - cat breaking line > I have a file temp1 as below > [EMAIL PROTECTED]:~/stock$ cat temp1 > ABB,ABB LTD., 4730.00, 4779.00, 4700.00, 47

Re: scripting - cat breaking line

2007-06-24 Thread L . V . Gandhi
On 6/23/07, Gabriel Parrondo <[EMAIL PROTECTED]> wrote: 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 pathna

Re: scripting - cat breaking line

2007-06-24 Thread Matus UHLAR - fantomas
On 23.06.07 14:23, L.V.Gandhi wrote: > Subject: scripting - cat breaking line > I have a file temp1 as below > [EMAIL PROTECTED]:~/stock$ cat temp1 > ABB,ABB LTD., 4730.00, 4779.00, 4700.00, 4726.45,59655 > ACC,ACC LIMITED, 860.00, 864.9

Re: scripting - cat breaking line

2007-06-23 Thread Gabriel Parrondo
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 > r

Re: scripting - cat breaking line

2007-06-23 Thread L . V . Gandhi
On 6/23/07, - Tong - <[EMAIL PROTECTED]> 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: > [EMAIL PROTECTED]:~/stock$ for line in $(cat temp1);do echo > "20070622,$line">>temp2 ;done FYI, the best approach fo

Re: scripting - cat breaking line

2007-06-23 Thread L . V . Gandhi
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 i

Re: scripting - cat breaking line

2007-06-23 Thread - Tong -
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: > [EMAIL PROTECTED]:~/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 mainta

Re: scripting - cat breaking line

2007-06-23 Thread Wu-Kung Sun
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)" -- swk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

scripting - cat breaking line

2007-06-23 Thread L . V . Gandhi
I have a file temp1 as below [EMAIL PROTECTED]:~/stock$ cat temp1 ABB,ABB LTD., 4730.00, 4779.00, 4700.00, 4726.45,59655 ACC,ACC LIMITED, 860.00, 864.90, 844.30, 852.25 ,228318 When I run on command line as [EMAIL PROTECTED]:~/stock$ for line in $(cat te