Comment by ahoef
4 years ago
Depending on how you name your files, you want to add -print0 to your find and -o to your xargs. If you have spaces in your file names you want that to carry over in your xargs.
Secondly, you may want to add -n 200 to your xargs so if you have very, very many files bash doesn't complain.
So:
Find all files and do something to each one
find . -type f -mmin -90 -print0 | xargs -0 -n 1024 ls -l
No comments yet
Contribute on Hacker News ↗