Help for this page

Select Code to Download


  1. or download this
    $ find /foo/bar -type f -name '*.baz' -print0 | xargs -0 rm
    
  2. or download this
    use File::Find::Rule;
    
    unlink File::Find::Rule->file()->name('*.baz')->in('/foo/bar/');