Thread kompletten Verzeichnis-Baum durchlaufen (2 answers)
Opened by Gast at 2005-02-16 13:42

renee
 2005-02-16 13:47
#51802 #51802
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/perl 

use strict;
use warnings;
use File::Find;

my $dir = './testdir';
my @dirs;
find(\&get_dir,$dir);

sub get_dir{
 rename($_, $new_filename) if(-f $File::Find::name && $_ =~ /DEIN_MUSTER/);
}
\n\n

<!--EDIT|renee|1108554587-->
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread kompletten Verzeichnis-Baum durchlaufen