3 ms·
Oh, nice! I always forget that xargs defaults to echoing the parameters if you don't specify a command. That said, variations on my one are also handy for doin
by EvilTerran 10y ago
Oh, nice! I always forget that xargs defaults to echoing the parameters if you don't specify a command.
That said, variations on my one are also handy for doing any further processing on the lines - eg, I do stuff like this pretty regularly:
perl -ln0e '/^FOO=/&&print' /proc/$pid/environ