Sed problems on Solaris 10

Hi,

The config file:
# Port(s) for accepting client connections
RTSPPort=554

bash-3.00# awk -F"=" -v gr="888" '/RTSPPort/{$2=gr;}1' OFS="=" server.ini
awk: syntax error near line 1
awk: bailing out near line 1

Can you help me on why this doesn't work.

The next one neighter. Dosn't generate errors but doesn;t make the replacement.

sed -e "s-\(^DefaultStorageFolder=\)\([^#]*\)-\1$INSTALLDIR/cdr-" server.ini

Thanks,
Bianca