↧
Answer by hyperbole for Find and Replace in Unix - XML File
It seems to me this is what you're trying to do: awk '/icn=/ { sub(/icn=.[0-9][0-9]*/, "icn=\""++v); print } ' file.xml
View ArticleFind and Replace in Unix - XML File
I have output XML file which has string in each line icn="1", this number inside the double quotes will be changing for every line. But this number is not incrementing in order, so i have to make...
View Article