[lkml]   [1996]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Drawbacks of implementing undelete entirely in user space
    In article <>,
    Bryn Paul Arnold Jones <> 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.016 / U:35.188 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site