4 ms·
Awk delimits on whitespace by default. cut cannot do that afaict. So if you have something like this cut wont work: apples 1 bananas 2
by fnord123 9y ago
Awk delimits on whitespace by default. cut cannot do that afaict. So if you have something like this cut wont work:
apples 1
bananas 2
- ninkendo 9y agoExactly, which makes cut kinda shit for 99% of common "split-on-whitespace" tasks IMO.
- dredmorbius 9y agoYou can always use awk with IFS/OFS values to clean up the delimiters so you can pass the data off to cut ;-)