in reply to Searching Sub Dir for Files
... where yourprog.pl looks something like:find /cdw/home_dir/ -name "*.sas" | xargs perl yourprog.pl
use strict; use warnings; my @words = qw(foo bar baz etc.); while (<>){ for my $word (@words){ print "Found $word in $ARGV\n" if (/\Q$word/); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching Sub Dir for Files
by Fuism (Beadle) on Jun 01, 2005 at 19:34 UTC |