[Courses] How to get line-information from buffer..

Conor Daly c.daly at met.ie
Mon Sep 30 10:41:38 EST 2002


On Mon, Sep 30, 2002 at 01:59:21PM +0530 or thereabouts, sneha wrote:
> ** hello :)
>         Thank u for correcting me conor :)
> ?? what if someother line contains the word "Host" and only the first
> occurrence is required....
> 
> !!  grep "Host" info| head -n 1 | cut -d ":" -f3
> 
> friendly
> sneha :o)

Yep, that'll work.  The C version will stop at the first occurence anyhow...

Conor
-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064276 Fax +353 1 8064247
------------------------------------
bofh.irmet.ie running RedHat Linux 10:40am  up 2 days, 17:51,  4 users,  load average: 0.04, 0.03, 0.08


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept 
for the presence of computer viruses.


**********************************************************************




More information about the Courses mailing list