in reply to search disk and prompt for deletion of files larger than a certain size

We had a find ... xargs vs. File::Find discussion here before. Your entire program can be written by find2perl in a much more secure and efficient manner:
find2perl /top/dir -name '*.gz' -eval 'size > 1000000 and unlink' | pe +rl

-- Randal L. Schwartz, Perl hacker

  • Comment on RE: search disk and prompt for deletion of files larger than a certain size
  • Download Code