I have these lines in multiple files:
<update>2013-02-10</update>
<version>1.15</version>
and I want to replace them with (new date and version):
<update>2019-06-30</update>
<version>1.28</version>
How can do this on multiple files using sed or awk? (I'm on Mac OS)
edit 1: lines <update> and <version>
are not one after another and I want to replace every occurrence of them.
edit 2: date varies but the string <update>
doesn't get changed, so I can't use find "2013-02-10" and replace with "new date"
<update>2013-02-10</update>
and all occurrences of<version>1.15</version>
, or do you need to only replace when they are found one after the other as you show?