On Thu, 15 Jun 2006, Sebastien Roy wrote:

BEGIN {
...

collapse the other-line munching as per meem.


{
        numlinks = split($4, links, ",");
        newlinks = links[1] "/0";
        for (i = 2; i <= numlinks; i++) {
                newlinks = newlinks "," links[i] "/0";
        }
        print $1 "\t" $2 "\t" $3 "\t" newlinks "\t" $5 "\t" $6 "\t" $7
}

Replace with:

{
        gsub(/[^,]*/, "&/0", $4);
        print;
}

regards,
--
Paul Jakma,
Network Approachability, KISS.           Sun Microsystems, Dublin, Ireland.
http://opensolaris.org/os/project/quagga tel: EMEA x19190 / +353 1 819 9190
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to