Removing characters
Published: Wednesday, Dec 26, 2007 Last modified: Thursday, Nov 14, 2024
There are different ways of doing it:
# removing fullstop
DOMAIN="blah.com"
echo $DOMAIN
echo $DOMAIN | sed 's,\.,,'
echo $DOMAIN | tr -d .
echo ${DOMAIN//./}