On Nov 17, 2007 10:07 AM, Michael Tinsay <[EMAIL PROTECTED]> wrote: > > My apologies. I have not made my original mail clearer. I forgot to > mention that the text file contains other data, like: > > > <data> > ... > FILE0 > <more data> > ... > FILE1 > <even more data> > ... > FILE2 > <a whole lot more data>
$ perl -pi.bak -e '$line = $_; chomp $line; next unless -l $line; s/^(.*)[^\n]$/readlink($line)/e' textfile 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

