Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Script to delete huge sparsebundle images' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script to delete huge sparsebundle images
Authored by: rotaiv on Jul 19, '12 08:18:59AM
When ever I have to delete large number of files (mac, win, linux) I simply delete the parent folder. I created a temp directory with 5,000 files and could not delete the individual files but could delete the parent folder with no issues:

$ pwd
/tmp/ManyFiles

$ ls | wc -l
50000

$ rm *
-bash: /bin/rm: Argument list too long

$ cd ..

$ rm -rf ManyFiles/



[ Reply to This | # ]