simple/lspath/lspath.pl

15 lines
225 B
Perl
Raw Normal View History

2000-02-13 19:41:05 +01:00
#!@@@perl@@@ -w
use strict;
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 "";
2001-06-26 15:47:37 +02:00
system("/bin/ls", "-ldi", $pp);
2000-02-13 19:41:05 +01:00
}
}