Re:Ask HN: Can I see your cheatsheet?
by ahoef on Thursday June 30, 2022 @07:25AM
(#31931059)
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
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