3 ms·
The interested reader should not assume hastily, however, that tr -s is enough to make cut behave exactly like awk. Hint: leading spaces. pi:~$ echo ' foo'
by a3_nm 15y ago
The interested reader should not assume hastily, however, that tr -s is enough to make cut behave exactly like awk. Hint: leading spaces.
pi:~$ echo ' foo' | tr -s ' ' | cut -d ' ' -f 1
pi:~$ echo ' foo' | awk '{print $1}'
foo