sed -i 's/'$search'/'$replace'/g' $file
this command is able to replace only strings..but i wanted to search and replace any kind of strings in a file
Ex : if i give input
$search= /jms/CodeBasev1.23*
$replace= /jms/CodeBasev1.24/baseline*.
it should search for exact string and replace the exact line .. Not only with slashes but also it should accept meta-characters also
ex: [..],%,&,() ..etc