3 ms·
Your wish has been granted: awk '{ print $2 }' can be replaced by 'cut -f2'. And all of the commands are part of the set of POSIX command-line utilities having
by tannhaeuser 6y ago
Your wish has been granted: awk '{ print $2 }' can be replaced by 'cut -f2'. And all of the commands are part of the set of POSIX command-line utilities having been included on Unix systems since basically forever, with awk (the one true awk) having been introduced only in 1983 or so.
- tedunangst 6y agocut doesn't use the same field delimiters as awk.
- Scarbutt 6y agoAnd awk doesn't let you easily select a range of fields like cut