help with command line deletion

Michael Maibaum mike at maibaum.org
Tue Apr 17 02:15:33 PDT 2007


Assuming you want to delete files from '/' down, and not really tested

first run

$ find / -name '.indelible-info' -print

check that that outputs only files you want to delete

then run

sudo find / -name '.indelible-info' -exec rm \{\} \;



On 17/04/07, David Herren <david at idiomatrix.com> 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?
>
> locate .indelible-info returns an enormously long list. I imagine
> piping locate to some form of rm -R is the way to go, but the
> potentially disastrous results of my misuse of that lead me here for
> consultation...
>
> /david
>
> --
> david herren - shoreham, vt us na terra solsys orionarm
>
> All wars are civil wars, because all men are brothers ... Each one
> owes infinitely more to the human race than to the particular country
> in which he was born.  -Francois Fenelon
>
> _______________________________________________
> MacOSX-admin mailing list
> MacOSX-admin at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-admin
>


More information about the MacOSX-admin mailing list