Need to erase 150K files from a folder, and I want to erase them by batches
what would be the best way ?
for instance delete the first 1000 results of
find . -time +600 -exec rm {} \;
Need to erase 150K files from a folder, and I want to erase them by batches
what would be the best way ?
for instance delete the first 1000 results of
find . -time +600 -exec rm {} \;
Your command assumes that there are no subdirs, so that's what I'll assume. This is in a bash
Then repeat until no more files.