Quantcast
Channel: Find and Replace in Unix - XML File - Unix & Linux Stack Exchange
Browsing all 2 articles
Browse latest 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 all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>