User Tools

Site Tools


tutorials:perl:find_empty_file.2.pl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:perl:find_empty_file.2.pl [2010/08/03 02:25] – created chkuotutorials:perl:find_empty_file.2.pl [2017/04/12 14:45] (current) chkuo
Line 1: Line 1:
-<code perl>+<file perl find_empty_file.2.pl>
 #!/usr/bin/perl -w #!/usr/bin/perl -w
  
 my $script_name = 'find_empty_file.2.pl'; my $script_name = 'find_empty_file.2.pl';
  
-# Chih-Horng Kuo +# Chih-Horng Kuo <chkuo@lifedev.org> 
-# find empty files in the in_dir (and possibly remove them)+# find empty files in the "--in_dir
 +# use the "--regex" option to set search regex (e.g., --regex="*.txt") 
 +# set "--opt_rm=1" to remove those files
 # v2 2010/07/12 # v2 2010/07/12
 #   style change #   style change
Line 53: Line 55:
  
 exit(0); exit(0);
-</code>+</file>
tutorials/perl/find_empty_file.2.pl.1280773521.txt.gz · Last modified: by chkuo