perllearner007 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Perlmonks! So I have a directory(let's call it WEIGHT_HEIGHT) with files as follows:
What I would like is to make a new directory(let's call it WEIGHT) and put all the weight.txt files in it. So I get all weight files in the new folder as follows:ID_002_weight.txt ID_002_height.txt ID_003_weight.txt ID_003_height.txt ID_004_weight.txt ID_004_height.txt
Is there a way to do this? I am fairly new to perl, so if you could guide me to some topics or tutorials which would help me achieve this will be really great. Thank in advance!ID_002_weight.txt ID_003_weight.txt ID_004_weight.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: new directory with sorted files
by GrandFather (Saint) on Apr 05, 2012 at 21:56 UTC | |
|
Re: new directory with sorted files
by choroba (Cardinal) on Apr 05, 2012 at 21:16 UTC | |
|
Re: new directory with sorted files
by mikeraz (Friar) on Apr 05, 2012 at 21:17 UTC | |
|
Re: new directory with sorted files
by ikegami (Patriarch) on Apr 05, 2012 at 21:53 UTC | |
by mikeraz (Friar) on Apr 05, 2012 at 23:23 UTC | |
by ikegami (Patriarch) on Apr 06, 2012 at 22:47 UTC | |
by pvaldes (Chaplain) on Apr 07, 2012 at 00:31 UTC | |
|
Re: new directory with sorted files
by nemesdani (Friar) on Apr 06, 2012 at 06:48 UTC | |
|
Re: new directory with sorted files
by perllearner007 (Acolyte) on Apr 06, 2012 at 16:01 UTC |