Input file contains :
1.$HOME/aaa.ksh , $HOME/bbb.ksh,$HOME/ccc.ksh, $HOME/cc.ksh, $SQL/mysql.sql, $BIN/mybin,$BIN/bina
2.$HOME/ddd.ksh, $HOME/ddff.ksh , $HOME/fffff.ksh, $HOME/ccccc.ksh, $SQL/qqq.sql, $BIN/mybin, $BIN/bina
If I need to remove $BIN/mybin from the above by using "$BIN/mybin" as a variable, how can I do it?
cat inputfile |sed 's/\$BIN\/mybin//g' works!!
but it doesnt work as cat inputfile |sed 's/\$var//g' where $var="\$BIN/mybin"
can someone help?
thanks