2012-05-08 12:05:02 +02:00
|
|
|
#!@@@perl@@@
|
|
|
|
use warnings;
|
2000-02-13 19:41:05 +01:00
|
|
|
use strict;
|
|
|
|
|
2012-05-08 12:05:02 +02:00
|
|
|
use Getopt::Long;
|
|
|
|
|
|
|
|
my $suffix = "";
|
|
|
|
|
|
|
|
GetOptions(
|
|
|
|
"suffix:s" => \$suffix,
|
|
|
|
);
|
|
|
|
|
2000-02-13 19:41:05 +01:00
|
|
|
|
2004-06-13 00:25:46 +02:00
|
|
|
my @pp;
|
2000-02-13 19:41:05 +01:00
|
|
|
for my $p (@ARGV) {
|
|
|
|
|
|
|
|
my @p = split (/\//, $p);
|
|
|
|
for (my $i = 0; $i < scalar(@p); $i++) {
|
|
|
|
my $pp = join("/", @p[0..$i]);
|
|
|
|
$pp = "/" if $pp eq "";
|
2012-05-08 12:05:02 +02:00
|
|
|
$pp .= $suffix;
|
2000-02-13 19:41:05 +01:00
|
|
|
|
2004-06-13 00:25:46 +02:00
|
|
|
push (@pp, $pp);
|
2000-02-13 19:41:05 +01:00
|
|
|
}
|
|
|
|
}
|
2004-06-13 00:25:46 +02:00
|
|
|
system("/bin/ls", "-fldi", @pp);
|