On Fri, 2005-04-29 at 10:25 -0700, rinkal patel wrote:
> Need some help...
> 
> ->. Does anybody know to extract a single line and
> store it in a variable thorough shell command.....Plz
> tell me...


Depends on what program you use to get the line out of a file. For
example if you want the first line from a text file:

a=`head -n 1 file.txt`
echo $a

If you want the last line:

a=`tail -n 1 file.txt`
echo $a

and so on

HTH,

-------------------------------------------------------------------
Rajarshi Guha <[EMAIL PROTECTED]> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Alcohol, an alternative to your self
- 'Alcohol' by the Bare Naked Ladies



--
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

Reply via email to