Progrider

Programming discussion

Search

Searches topics and replies. Every word has to appear in the post.

28 posts found.

PostPosted
Help · post #3

And if you do want xargs for something other than deleting, use find -print0 | xargs -0, then spaces and newlines in names are fine. Or find ... -exec cmd {} + which does the same batching with no pipe.


by awkward
Help · post #2

find . -name '*.log' -delete Quote the pattern, or your shell expands it before find sees it. If you've got one .log in the current dir you're searching for that one exact name.


by vek
Help · post #1

find . -name *.log | xargs rm says no such file for some of them. how do i fix


by pbj
All times shown in UTC.