help with command line deletion
LuKreme
kremels at kreme.com
Tue Apr 17 07:13:18 PDT 2007
On 17-Apr-2007, at 03:03, David Herren wrote:
> As a result of a number of crashes (bad memory) and resultant disc
> corruption failures, and then an imperfect restore from backup
> software that I no longer use, my drive is scattered with
> _hundreds_ of folders named ".indelible-info". The dot obviously
> makes them invisible in the Finder generally. There are hundreds
> and hundreds. Virtually every directory on the machine contains
> such a folder ranging from a minimum of 4k to upwards of 100s of k.
>
> I have been using OmniDiskSweeper to delete them manually, but
> there has got to be a faster way using the command line that would
> seek them all out and delete them. Can anyone give me some pointers?
find / -name ".indelible-info" -exec rm {} \;
this executes find from the root folder and looks for files named
exactly .indelible-info and then executes the command 'rm {thing I
found}' for each file.
Run it as sudo if you are not the owner of the files. If you want to
see what files it is going to delete, run
find / -name ".indelible-info" -exec ls -al {} \;
or the simpler
find / -name ".indelible-info" -ls
--
I leave symbols to the symbol-minded - George Carlin
More information about the MacOSX-admin
mailing list