Re:Learn to Process Text in Linux Using Grep, Sed, and Awk
by owenmarshall on Friday January 06, 2023 @04:24PM
(#34281333)
My approach with these tools is to use then for speed, and to resist the (very strong) urge to golf with them.
So I always start with `cat filename | some tool`[1] and refine until the very moment that I think "damn, I can't remember how to do that with sed/awk/jq/xsv/..." and end my pipeline feeding into Python. There's no law against it! And on slow days I go back and figure out how I can do what I want with the other tools.
So I always start with `cat filename | some tool`[1] and refine until the very moment that I think "damn, I can't remember how to do that with sed/awk/jq/xsv/..." and end my pipeline feeding into Python. There's no law against it! And on slow days I go back and figure out how I can do what I want with the other tools.
[1]: Yes, yes, UUOC[2], but I don't care!
[2]: https://groups.google.com/g/comp.unix.shell/c/532AcI3-zs4/m/...