|
From: Bruce S. <bw...@ar...> - 2004-02-11 15:51:53
|
> >>>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. My main problem is I know nothing about IPv6, so I don't know what to look for. i.e. Will a normal IPv6 ROUTE contain legal colons? (:) Can you show me a couple example ifcfg files? For v4 & v6 both? > 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. OK, I'll take a look. - BS |