I am running the following command:
find /home/debajdas/checkout -name 'pom.xml' -or -name '*.properties' | xargs sed -i 's/10.0.0.0.3/10.0.0.0.4/gpw changes'
But it's replacing
<version>10.0.0.0.3</version>
with
<version>10.0.0.0.4</version>
<version>10.0.0.0.4</version>
Why is it getting replaced with 2 lines ?
GNU sed
You must remove 'p' that prints current pattern space.