starface245 has asked for the wisdom of the Perl Monks concerning the following question:
I want to open all .msg files cause I have thousands. I get error "The system cannot find the file specified"#!/usr/bin/perl @files = glob("*.msg"); foreach $file(@files) { $cmd = "perl script.pl < $file"; system($cmd); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using wildcards to open files.
by kcott (Archbishop) on Oct 25, 2012 at 16:41 UTC | |
by starface245 (Novice) on Oct 25, 2012 at 18:34 UTC | |
by kennethk (Abbot) on Oct 25, 2012 at 19:04 UTC | |
by starface245 (Novice) on Oct 25, 2012 at 20:06 UTC | |
by kcott (Archbishop) on Oct 26, 2012 at 00:35 UTC | |
|
Re: Using wildcards to open files.
by kennethk (Abbot) on Oct 25, 2012 at 15:48 UTC | |
|
Re: Using wildcards to open files.
by aitap (Curate) on Oct 25, 2012 at 16:00 UTC | |
|
Re: Using wildcards to open files.
by muba (Priest) on Oct 25, 2012 at 15:50 UTC | |
by starface245 (Novice) on Oct 25, 2012 at 15:52 UTC | |
by frozenwithjoy (Priest) on Oct 25, 2012 at 21:10 UTC | |
|
Re: Using wildcards to open files.
by brap (Pilgrim) on Oct 26, 2012 at 13:31 UTC |