Saturday, May 30, 2009

Removing files in Linux

The best thing about Linux is the console, one of the many useful uses is the way you can handle (find, move, create, delete) files, a quick example of this is removing all hidden .svn directories:
rm -rf `find . -type d -name .svn`

Make sure that you use "`" and not "'", you can also try removing all java files in a
folder using this one:

rm -rf `find . -type f -name *.java`

Simple and painles ;)
blog comments powered by Disqus