There are different ways of doing it:

# removing fullstop

DOMAIN="blah.com"

echo $DOMAIN

echo $DOMAIN | sed 's,\.,,'

echo $DOMAIN | tr -d .

echo ${DOMAIN//./}
Feedback

Powered by Vanilla PHP feedback form