I'm trying to replace particular strings from a text file
Input: Computer Peripherals Internet Technology C/C++
Output : Shopping Generic Programming
When i try using the follwing sed:
refcat="Computer Peripherals"
cat1="Shopping"
echo $list | sed -e 's@$refcat@$cat1@g'
I get the following result:
Computer Peripherals Internet Technology
I get the output on a different line. Can someone pls help me with this?? My Input and Output values can have special characters in them ( Except '|' or '@' )