Re: Drawbacks of implementing undelete entirely in user space

shields@crosslink.net
23 Jun 1996 00:32:41 -0000


In article <Pine.LNX.3.91.960622143613.722G-100000@gytha.demon.co.uk>,
Bryn Paul Arnold Jones <bpaj@gytha.demon.co.uk> wrote:
> find / -name '.wastebasket/*' -amin 60 -exec rm {} \;
>
>
> It's a real pity that doesn't work :( it would if 'somefile', and
> '.somefile' wern't treated differantly, but they are so .... (perhaps it
> needs fixing)

I'm not personally in favor of .wastebasket, but people should know how
to use find, so:

find / -name .wastebasket -amin 60 -print0 | xargs -0 rm

But you're better off doing this in Perl using File::Find and iterating
only over user home directories.

-- 
Shields, CrossLink.