I am trying to replace a string using the following command:
sed -e "s/\<$5\>/$6/g" "$2/$1" > "$4/$3"
$5-> "hostname=*"
$6-> "hostname=int1"
$2/$1-> "source file path"
$4/$3-> "destination file path"
When I try to replace the following:
hostname=abc
I get,
hostname=int1=abc
But I want,
hostname=int1
How can I match string to achieve this?