This is Argyn's blog. I comment on topics of my interests such as software, math, finance, and music. Also, I write about local events in Northern Virginia, USA and all things related to Kazakhstan

Thursday, June 08, 2006

How to delete 50,000 files in Solaris?

If I try simple
rm *.gz
, when there's 50,000 *.gz file, it will say "argument's too long".

So, this command works:
find . -name "*.gz" -exec rm {} \;


Thanks to Gopala for a tip!

No comments: