How to loop through file names returned by find?
TL;DR: If you’re just here for the most correct answer, you probably want my personal preference (see the bottom of this post): # execute `process` once for each file find . -name ‘*.txt’ -exec process {} \; If you have time, read through the rest to see several different ways and the problems with most … Read more