Reply to post: Re: find is your friend

College student with 'visions of writing super-cool scripts' almost wipes out faculty's entire system

Michael Wojcik Silver badge

Re: find is your friend

Some might say that there's no point in find -print0 | xargs -0, and you should just use -exec. Mostly it's a matter of taste.

.... except, I should note, that find pays attention to the exit code of the program executed by -exec, which affects any find clauses after -exec, and the final exit code of find itself.

find is powerful, but there are subtleties.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon