for (@ARGV) {
if (/^6\d{4}$/) { $item_code = $_; $action = 'load'; }
elsif (/^stop$/) { $action = 'stop' ; }
elsif (/^start$/) { $action = 'start'; }
else { print "Default\n"; }
}
print "Item : " . $item_code . "\n";
print "Action : " . $action . "\n";
Delete all files older than x days linux
This command deletes all files modified more than 30 days ago in the current directory # have a look at what it will...
0 Comments