Robert Canary wrote:
> Hi,
> 
> This is really a silly question, but ...........
> 
> I need to extract a single line from a /proc file.  The lines are sorted
> by the first column, which are always 0,1,2,3,4,...,60,61,62,63,64.   I
> treid doing something like:
> cat /proc/cyclades | egrep -w "8" but it returns *every* line with an
> 8.  How can I do this without going through a loop?
> 

This may not be the best solution, but try:

        cat /proc/cyclades | egrep -w "8" | head -n 1 -

-W-


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to