On Fri, 29 Apr 2005 10:25:35 -0700 (PDT), rinkal patel
<[EMAIL PROTECTED]> wrote:
Need some help...
->. Does anybody know to extract a single line and
store it in a variable thorough shell command.....Plz
tell me...
->. I had gone through the shell tutorial and found
may commands..like cat, head, tail...also i used
awk...but none of them had a facility of storing the
result in a variable...
->. the above commands displayed the result on the
console. but i dont know how to store it in a
variable...
Plz ..reply me.....
thanks..
i=1
while [ $i -le 100 ]
do
echo ---------------------------$i
head -n $i ~/cc | tail -n 1 > ~/dd
var = `sed 's/PPPP/PPPP/' ~/dd`
echo $var
i=`expr $i + 1`
done
hope this will work,
bye
prosun
__________________________________ Do you Yahoo!? Yahoo! Mail - now with
250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3