|
Hi,
You'll get the same output using the awk. You can also get the output of first words in firstword.txt
your command.... | awk {' print $1'} | tee firstword.txt
For example, if you want to get only the first word in uptime. use
$ uptime | awk {' print $1'}
01:59:45
|