On Nov 16, 2007 6:51 PM, Zak B. Elep <[EMAIL PROTECTED]> wrote:
> If you have the File::Slurp Perl module (I think it comes standard
> with v5.8) you can do a one-liner loop, as illustrated below (assuming
> the contents above is in the file `textfile':)

Erg, I read this wrong.  I see that what is to be replaced is the
value of the symbolic link.

Anyways, here's my take:

$ perl -pi.bak -e's/(.*)\n/readlink($1)."\n"/e' tempfile

Cheers,

Zakame

-- 
Zak B. Elep  ||  http://zakame.spunge.org
[EMAIL PROTECTED]  ||  [EMAIL PROTECTED]  ||  [EMAIL PROTECTED]
1486 7957 454D E529 E4F1  F75E 5787 B1FD FA53 851D
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to