In the script below second & third line are working but not the first and fourth. The reason is because I am replacing the whole line, I actually only need to replace what's to the right of the '=' sign. Any idea on how I can accomplish this in sed? Thanks.
# example: ./configure input-file, SSID, IP, device-name, gateway, frequency
#
#
FILE=${1}
SSID=${2}
IP=${3}
DEVICE=${4}
GATEWAY=${5}
sed -e "s/\(wireless\.1\.ssid=\).*/${SSID}/g" \
-e "s/192\.168\.1\.20$/${IP}/g" \
-e "s/\(NanoBridge M.\)/${DEVICE}/g" \
-e "s/\(route\.1\.gateway=\).*/${GATEWAY}/g" ${FILE} > /home/garrett/Desktop/NEW-CONFIG.txt
#END#