Help for this page

Select Code to Download


  1. or download this
        find /foo/bar -mtime +7 -exec rm -rf {} \;
    
  2. or download this
    use File::Find;
    find(\&wanted, '/foo/bar');
    ...
    sub wanted {
        unlink $_ if -M $_ > 7;
    }