Hi, I have an output like this:
#CMD
Output:
user1
user2
user3
user4
How can I select ONLY the first row?
Thanks
Hi, I have an output like this:
#CMD
Output:
user1
user2
user3
user4
How can I select ONLY the first row?
Thanks
man head
CMD | head -1
'line' is very good at this:
text . . . |( line >header_file.txt whatever_cmd_reading_rest )
In ksh, 'read', as in:
. . . | read l
echo $l
but
OK, thanks!