2 ms·
FreeBSD cut has -w for that ("split by any amount of whitespace"), but that never made it into GNU cut. Sad, because it's mega useful. Of course awk can do muc
by arp242 2y ago
FreeBSD cut has -w for that ("split by any amount of whitespace"), but that never made it into GNU cut. Sad, because it's mega useful.
Of course awk can do much more, but if all you want is "| awk '{print $2}'" then "cut -wf2" is so much more convenient.
- stouset 2y agoReordering and splicing are common enough that it’s easier just to always use awk, since the cost of rewriting one to the other is significantly higher.