3 ms·
xargs was my first thought as well. I think I type in this line almost daily (why have i not made an alias already?): find . -type f | xargs grep needle gnu f
by noss 17y ago
xargs was my first thought as well. I think I type in this line almost daily (why have i not made an alias already?):
find . -type f | xargs grep needle
gnu find and xargs have the -print0 and -0 arguments for piping nul terminated filenames, so special chars in file names wont bite you.