Hi,
I am trying to replace the old_string with the new_string using sed.
But i am unable to do it using the following script.
#!/bin/sh
old_string="p cnf 10 20"
new_string="p cnf 98 99"
sed -e 's/old_string/new_string/' file1.txt > file2.txt
Contents of file1.txt
p cnf 10 20
1 2 3
4 5 6
8 9 10
11 12 30
Any help is appreciated.