I have tried to list the files but no luck. It is not copied to an array. How can I copy all the files with the modifition times for last 7 days.#!/usr/bin/perl use Date::Format; our $cur_date = time2str("%d",time); print "Current Date : $cur_date\n"; my $path = '/home/cont'; @listfiles = `find "$path" -type f -mtime -7 -print`; print @listfiles."\n";
In reply to list files by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |