3 ms·
To be fair that is one of the worst. I'm definitely bookmarking this site. Even if I won't use several of the functions, it is really valuable to have a single
by pavon 5y ago
To be fair that is one of the worst. I'm definitely bookmarking this site. Even if I won't use several of the functions, it is really valuable to have a single place to check to see "yeah, that really is the best you can do with bash, I'll exec out instead", rather than scouring through multiple StackOverflow answers that are subtly wrong.
And my bash code would probably be more readable if I started collecting common operations in a function library rather than repeating the same sed/awk incantations that aren't super readable. At that point might as well use pure bash/sh implementations to save spawning a new process when reasonable.