use perl:
#!/usr/bin/perl
open FILE, "<abc.txt";
while ($line = <FILE>) {
print $line;
}
close FILE;
Here $line is your variable
--- 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..
>
>
>
> __________________________________
> 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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