Get the First Line of Command Output in Shell
Tagged with: cli, command, first, line, Linux, output
Saturday, July 7th, 2007 11:18 PM
Get just the first line of the output of a command…
<command>|head -n1
ls -1|head -n1
Get just the first line of the output of a command…
<command>|head -n1
ls -1|head -n1