lkml.org 
[lkml]   [1996]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Drawbacks of implementing undelete entirely in user space
    Date
    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.


    \
     
     \ /
      Last update: 2005-03-22 13:37    [W:0.036 / U:0.084 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site