#!/usr/bin/perl use strict; use warnings; use File::Find::Wanted; my @files = find_wanted( sub { -f && /\.log$/ }, '/var/log' ); if (@files) { foreach my $file(@files) { print $file, "\n"; } } else { print "Sorry. Could not find requested files\n"; }
In reply to Re: Assistance using the find command
by Khen1950fx
in thread Assistance using the find command
by akechnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |