[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [SLUG] Script Help



> Hopefully a simple answer, that I will kick myself after finding the
> answer.
> 
> What command(s) can I use to return a specific line within a data file.
> i.e: I need to return Line 2 of a file to a shell variable for further
> processing.
> 
> Any help....
> 
> PW


you're gonna start another war ;) 

head -2 filename | tail -1

cheers,
Marty
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text