in reply to Capturing the first and last line of a file ?

Sometimes perl is not always the answer:

$ head -1 <filename> $ tail -1 <filename>

-derby