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
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
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.
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
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 >
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
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
7 matches
Mail list logo