Le 3 avril 2023 Greg Wooledge a écrit : > Here's a bash version. It's not fast, but at least it doesn't invoke > perl repeatedly. (If you're going to invoke perl *at all* you should > simply rewrite the whole thing in perl, IMHO, or at worst have a short > sh script that pipes file's output to one perl invocation.)
perl version: real 0m7,666s user 0m2,871s sys 0m5,054s bash version: real 0m23,890s user 0m24,476s sys 0m2,113s whole files are in cache so no io for both. but you count links, remember /(s)bin can be now a link to /usr/(s)bin