Get just the first line of the output of a command…
<command>|head -n1
ls -1|head -n1
This entry was posted
on Saturday, July 7th, 2007 at 11:18 pm and is filed under Command Line, Linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.