there is always my favorite head | tail combination: head -2 <filename> | tail -1
Although this is two commands, they seem to run faster than awk or sed. But any of these options should work for you. Einstein47 (Love is like PI - natural, irrational, endless, and very important.)
Mike, I've just been messing about with another thread here (printing the "context" of a grep result) and it seems, for example if you wanted to print lines 5-10, you would do sed -n 5,10p filename
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.