|
From: Friedrich L. <fl...@fl...> - 2004-02-11 15:39:37
|
Bruce Smith wrote on 11.02.2004 16:28 MET: >>>Although I'm not sure how to handle that. If I simply "s/:/|/g", >>>won't it will break the valid IPv6 routes? (and IP aliases?) >> >>Ok, then I will need to give you the right sed rules. >> >> From my head I the following could be a possible solution (though not >>tested yet): >> sed -e "s/^\(ROUTE.*\):/\0|/" > > > Wouldn't that only change the first : to | ? I will go over it and come back to you when I have a final sed expression. In the meantime you can think about how this could possibly integrated into the update utility as generic as possible - eg. by defining in a filter config file which filters to apply to a specific set of files. Filter might not be the right expression, transformation program might be more to the point. -- MfG / Regards Friedrich Lobenstock ____________________________________________________________________ Friedrich Lobenstock Linux Services Lobenstock URL: http://www.lsl.at/ Email: fl...@fl... ____________________________________________________________________ |