[X-Unix] finding duplicate files

Eric F Crist ecrist at secure-computing.net
Wed Jun 20 11:47:07 PDT 2007


In case you wanted to know,  you could gzip anything that's not  
already gzipped by doing a similar command:

perl -e 'foreach $file ( `find . | grep -v .gz` ) { chomp ( $file =  
$file ) ; if ( -ne "$file.gz" ) { print "gzipping file: $file; gzip  
$file; } }'

-----
Eric F Crist
Secure Computing Networks




More information about the X-Unix mailing list