Re:Learn to use Awk with hundreds of examples
by fnord123 on Wednesday October 25, 2017 @09:43AM
(#15550000)
Awk delimits on whitespace by default. cut cannot do that afaict. So if you have something like this cut wont work:
[ Parent
| on HN ]
Re:Learn to use Awk with hundreds of examples
by ninkendo on Wednesday October 25, 2017 @10:31AM
(#15550412)
Exactly, which makes cut kinda shit for 99% of common "split-on-whitespace" tasks IMO.
Re:Learn to use Awk with hundreds of examples
by dredmorbius on Wednesday October 25, 2017 @10:59AM
(#15550653)
You can always use awk with IFS/OFS values to clean up the delimiters so you can pass the data off to cut ;-)