HeyYou has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w #mp3Finder.pl use strict; use File::Copy; for(1...262) { print $_; my $dir = "/media/second/testdisk/linux/recup_dir.$_"; print $dir; chdir($dir); my @mp3s = glob "*.mp3"; for(@mp3s) { my $music = "/home/zack/music/$_"; copy($_, $music); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to find and copy mp3s
by Joost (Canon) on Feb 11, 2007 at 19:43 UTC | |
|
Re: Trying to find and copy mp3s
by kyle (Abbot) on Feb 11, 2007 at 21:56 UTC | |
by Anonymous Monk on Feb 12, 2007 at 00:55 UTC | |
by kyle (Abbot) on Feb 12, 2007 at 02:07 UTC | |
by dsheroh (Monsignor) on Feb 12, 2007 at 15:48 UTC | |
by davorg (Chancellor) on Feb 12, 2007 at 16:17 UTC | |
by kyle (Abbot) on Feb 12, 2007 at 15:53 UTC | |
by dsheroh (Monsignor) on Feb 12, 2007 at 16:05 UTC | |
by MidLifeXis (Monsignor) on Feb 12, 2007 at 18:48 UTC |