lspath
This commit is contained in:
parent
66dab29703
commit
8158f1a3b0
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/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 "";
|
||||
|
||||
system("/bin/ls", "-ld", $pp);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue