Re: doubt in using sed

2007-03-27 Thread Michelle Konzack
Am 2007-03-09 15:01:51, schrieb L.V.Gandhi: > I have made a script like this as test1 > #!/bin/bash > line="3IINFOTECH,2005042200,118,118,96,98.1,8260440" > olds=$(echo "$line"|cut -d, -f2) > echo $olds > da=${olds:0:8} > echo $da > echo "$line" > temp1 > sed -e 's/$olds/$da/' temp1 >>temp

Re: doubt in using sed

2007-03-10 Thread L . V . Gandhi
On 3/10/07, Mathias Brodala <[EMAIL PROTECTED]> wrote: Hello. Please reply to the list. L.V.Gandhi, 10.03.2007 05:24: > In another similar one I have problem > > [EMAIL PROTECTED]:~/stock/datafiles$ ls -l nse2/ > total 0 > [EMAIL PROTECTED]:~/stock/datafiles$ ls -l 3IINFOTECH > -rw-r--r-- 1 lv

Re: doubt in using sed

2007-03-10 Thread L . V . Gandhi
On 3/9/07, David Clymer <[EMAIL PROTECTED]> wrote: On Fri, 2007-03-09 at 20:22 -0800, L.V.Gandhi wrote: > > > Thanks David and Mathias. > In the above example after double quotes it works. When I pass the > output to file it works. > In another similar one I have problem You're welcome.

Re: doubt in using sed

2007-03-10 Thread Mathias Brodala
Hello. Please reply to the list. L.V.Gandhi, 10.03.2007 05:24: > In another similar one I have problem > > [EMAIL PROTECTED]:~/stock/datafiles$ ls -l nse2/ > total 0 > [EMAIL PROTECTED]:~/stock/datafiles$ ls -l 3IINFOTECH > -rw-r--r-- 1 lvgandhi lvgandhi 23400 2007-03-09 15:47 3IINFOTECH > [EMAI

Re: doubt in using sed

2007-03-09 Thread David Clymer
On Fri, 2007-03-09 at 15:01 -0800, L.V.Gandhi wrote: > I have made a script like this as test1 > #!/bin/bash > line="3IINFOTECH,2005042200,118,118,96,98.1,8260440" > olds=$(echo "$line"|cut -d, -f2) > echo $olds > da=${olds:0:8} > echo $da > echo "$line" > temp1 > sed -e 's/$olds/$da/' temp1 >

Re: doubt in using sed

2007-03-09 Thread Mathias Brodala
Hello. L.V.Gandhi, 10.03.2007 00:01: > I have made a script like this as test1 > #!/bin/bash > line="3IINFOTECH,2005042200,118,118,96,98.1,8260440" > olds=$(echo "$line"|cut -d, -f2) > echo $olds > da=${olds:0:8} > echo $da > echo "$line" > temp1 > sed -e 's/$olds/$da/' temp1 >>temp You want

doubt in using sed

2007-03-09 Thread L . V . Gandhi
I have made a script like this as test1 #!/bin/bash line="3IINFOTECH,2005042200,118,118,96,98.1,8260440" olds=$(echo "$line"|cut -d, -f2) echo $olds da=${olds:0:8} echo $da echo "$line" > temp1 sed -e 's/$olds/$da/' temp1 >>temp cat temp1 cat temp When I run get as [EMAIL PROTECTED]:~/.qtstalk