On Sat, 21 Dec 2002 20:32:43 EST, [EMAIL PROTECTED] wrote:
>Is there a way to have my script create a list of all the directories and
>files on my server from my root directory down?
It will create a huge file. Since there is a c program to do this,
you are better off using "find".
"find / -print > myhugefile.txt"
#########################################################
#!/usr/bin/perl -w
use File::Find;
use strict;
my $directory= "/";
find(\&files, $directory);
sub files {
print "$File::Find::name\n";
}
###########################################################
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]