« Return to Thread: bash doubt

bash doubt

by L.V.Gandhi :: Rate this Message:

Reply to Author | View in Thread

I have a script as follows
lvgandhi@lvghomepc:~$ cat bin/getlstocks
#!/bin/bash
i=0
while [ $i -ne 20 ]
do
        for trv in $(cat temp)
        do
                i=$i+1
                grep $trv stock/nsedata/2008/05/20080512.txt >> lstock
        done
done
when I run I get error as
integer expression expected
How to correct it

--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

 « Return to Thread: bash doubt

LightInTheBox - Buy quality products at wholesale price