in reply to compare directory list with a text list of filenames
Hi,
use strict; use warnings; open my $fh, '<', 'source.txt'; my @files = <$fh>; chomp @files; print join "\n", grep { -e $_ } @files;
Assuming the source file contains the full path to the files
Regards,
|
|---|