crazy-duck has asked for the wisdom of the Perl Monks concerning the following question:
Hi Team We are extracting the tar file count against each subdirectories and writing it to a log file, However we need to run this from 6am EST to 11 PM EST, how can this be incorporated in a perl script
below is the command and output
find /home/many -type d -exec sh -c "fc=\$(find '{}' -type f -name "* +.tar" -type f -mmin +20 -type f | wc -l); echo -e \"\$fc\t{}\"" \; | +sort -nr 3 /home/many 1 /home/many/t3 1 /home/many/t2 1 /home/many/t1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl script to find the file count in subdirectories in a time interval
by karlgoethebier (Abbot) on Apr 29, 2014 at 16:32 UTC | |
|
Re: Perl script to find the file count in subdirectories in a time interval
by graff (Chancellor) on Apr 30, 2014 at 02:38 UTC |