Hello,
I am trying to replace a string with a paramter given along with the script.
I am replacing application1 to application2 with the script:
./change_app.sh application2
But I get output as ${1} instead of application2. But when I echo $1, I get application2.
Please help in where I am going wrong, or if there is any better way.
Oops.. Thank you.
Quick question:
What do I have to do if I don't know the application1 name, but have to change - say a string next to Name: with application2.
sed 's/Name: application1/Name: '${1}'/g' "$file" > ./tmpfile