Quantcast
Channel: Active questions tagged bash+awk - Ask Ubuntu
Viewing all articles
Browse latest Browse all 102

Replace XML tags by numbers

$
0
0

Suppose i have an xml like this

<a>  hey  how  are</a><a>  where   are  you</a>

I want to change them and assign number like this--

1.hey  how  are2.where   are  you

I would prefer the answer in bash, thanks.


Viewing all articles
Browse latest Browse all 102

Trending Articles



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