Quantcast
Channel: Find and Replace in Unix - XML File - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 2 View Live

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 Article



Find 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
Browsing latest articles
Browse All 2 View Live




Latest Images