cleaning up

Bradley Giesbrecht brad at pixilla.com
Mon Jan 11 19:04:01 PST 2010


On Jan 11, 2010, at 5:55 PM, Michael Crawford wrote:

> If you're worried about losing your payload data, rather than having
> find delete all the renamed files automatically, have it generate a
> list of the renamed files that you redirect into a text file.  Examine
> that file by eye, manually remove any lines containing files that you
> don't want deleted, then delete the files named in the list by using
> the backquote shell construction:
>
> $ find BLAH > deleteme.txt
>
> (edit deleteme.txt, remove files that aren't to be deleted)
>
> $ rm `cat deleteme.txt`

That is an easy and safe approach and the list is not all that long  
this satisfies my needs.

In the future I'll also use mv instead of rm incase things go really  
wrong. If things are ok after a couple weeks I'll rm them.

Thank you,
Brad


More information about the macports-dev mailing list