[boulder.pm] Finding a symbolic link target
Myke Komarnitsky
myke at komar.org
Fri Sep 21 21:31:30 CDT 2001
I'm hoping you gurus out there can help me.
These are my two files,
lrwxrwxrwx 1 myke nobody 40 Sep 20 11:15 search.words ->
search.real.words
-rwxrwxrwx 1 myke nobody 5000 Sep 20 11:15 search.real.words
and here's the important part of the perl script:
foreach $line (@ARGV) {
if (-l $line) {
print "$line is a symbolic link...";
}
}
the trouble is, I really need to know what the TARGET of that symbolic link
is. Does anybody know how I can grab it?
thanks in advance,
Myke
Michael Komarnitsky Komar Consulting Group
303.818.3718 http://consulting.komar.org
http://climbingboulder.com
-
More information about the Boulder-pm
mailing list