From: david <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Urgent: How do I find real file instead of link
Date: Wed, 19 Mar 2003 10:08:01 -0800

Ohad Ohad wrote:

> I have a link and want the real file that it is pointing to.
>
> This means also if I have a linked list of links I want to get the real
> file at the end.
>

try readlink and -l:

#!/usr/bin/perl -w
use strict;

for(qw(file1 file2 file3)){
        print "$_ -> ",readlink,"\n" if -l;
}

__END__

david

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to