2 ms·
True, ls | grep 5 is reliable where ls *5* is not. (Well, except for awful names that require "find -print0", or preferably having the file taken out an
by prodigal_erik 17y ago
True,
ls | grep 5
is reliable where
ls *5*
is not. (Well, except for awful names that require "find -print0", or preferably having the file taken out and shot along with its creator.)
I'm actually not a fan of xargs. It's more unixy, but somehow I find its options hard to remember. Off the top of my head I find it easier to do
find -exec blah {} +