I have this text:
rojo
I want to make a substitution and turn it into:
rojo77
So I'm trying this:
perl -pi.bak -e "s/(ojo)/$177/g" oven.txt
If I wanted to replace with text instead of with 77, I would have no problem, but being a number I get this as a result:
r
I mean, it matches ojo, but replacement isn't working, so everything matched just gets deleted. How can I use $1 and use a number next to it?
Please help!