Brandon Casey <casey@xxxxxxxxxxxxxxx> writes: > If you think the strict ordering that mktag requires could be relaxed in the > future, then the line number addresses in sed could be changed to ranges > like: > > -e "1,4s/^object ..*/object $newobject/" > > Of course, if we use ranges, we may have to worry about matching against > the tag body if the header gets any longer. I do not think you have to worry if you did this: 1,/^$/{ s/object .*/object $newobject/ s/type .*/type $newtype/ ... } -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html