Thursday, January 20, 2011

Who Created Poptropica

How to recursively delete a folder on Mac OS X

On Mac OS X, as well as on Linux, to delete all subfolders recursively with a particular name, simply run the following terminal command:
find. -Type d-name nomecartelladaeliminare -exec rm-rf {} \\;
The - type d sure that will be considered only directories, then you can include it by not erasing the files from the specified name.

Warning: before running the command, remember to locate the folder from which you want to delete the subdirectories!
To be sure which folders will be deleted consiglio di eseguire prima:
find . -type d -name  nomecartelladaeliminare

Il comando risulta particolarmente utile se si volessero, ad esempio, eliminare tutte le cartelle .svn generate dal sistema di subversioning. In tal caso sarebbe sufficiente eseguire il comando:
find . -type d -name  .svn  -exec rm -rf {} \;

0 comments:

Post a Comment