Re:Useful sed scripts and patterns
by aidos on Friday November 12, 2021 @02:52AM
(#29197195)
That’s just because you don’t use them often though. If they were a daily driver it’d be different.
I think that if you have a good mental model of how awk works, then you know times that it’s the right tool for the job. And on those occasions you’ve got plenty of time to go search for some syntax, make a coffee, maybe even go for a run all with change to spare compared to using pretty much anything else.
I will admit, that if I can do it with a few greps, seds and cuts then I tend to just use those first, because there no thinking involved for me.
I think that if you have a good mental model of how awk works, then you know times that it’s the right tool for the job. And on those occasions you’ve got plenty of time to go search for some syntax, make a coffee, maybe even go for a run all with change to spare compared to using pretty much anything else.
I will admit, that if I can do it with a few greps, seds and cuts then I tend to just use those first, because there no thinking involved for me.