my inputfile:
This is a test and only a test for production - prod.
echo "This is a test and only a test for production - prod" | perl -pi -e 's/prod/test/g'
outputfile:
This is a test and only a test for testuction - test
I only want to replace prod, not production.
I also tried to use sed:
echo "This is a test and only a test for production - prod" | sed -e 's/prod/test/g'
This is a test and only a test for testuction - test
Thank you in advance for helping.