in reply to Obtaining header from file (first line) - printing to output file
The easiest way I can think of to put the first line into a file is, as you alluded to: head -1 thefile >thefile.firstline. Doing it in a perl one-liner is nearly as easy: perl -pe 'last if $.==2' thefile >thefile.firstline.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|