too many arguments while deleting files in linux.
for reasons that i’ll keep to myself, i needed to delete thousands of files on a linux box. so many files, in fact, that rm -Rf *.mp3 returned a “too many arguments” response. first time I’ve ever seen such a thing.
turns out that there’s a maximum number of arguments that can be passed to rm.
solution: find . -name “*.mp3″ | xargs rm -Rf
there is something very very satisfying about the pipe command.
setting up svn on a subdomain under cpanel
The fine folks at ServerBeach pointed me to a great tutorial on setting up subversion. This is only relevant if:
- You are running cPanel (which does not include mod_dav_svn in it’s apache install)
- You wish to access your subversion repository via HTTP
- You also wish to access the repo via a SVN client
- Such access should be through a subdomain that was set up via cPanel
Now I have my very own svn repo, running on a subdomain. Yay svn.
