help with command line deletion
Jyrki Wahlstedt
jyrki.wahlstedt at hut.fi
Tue Apr 17 02:45:25 PDT 2007
On 17.4.2007, at 12.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?
>
> 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
>
Hi,
one thing you could use, is:
$ find somedir -name '.indelible-info' -exec rm -rf {} \;
with 'somedir' being a directory name (first a small set, finally
'/'). Like this no other directories are touched.
HTH,
with regards,
!
! Jyrki Wahlstedt
! +358 (0)10 773 73 27
!
More information about the MacOSX-admin
mailing list