Removing characters

Published ยท Updated 10 Feb 2020

There are different ways of doing it:

# removing fullstop

DOMAIN="blah.com"

echo $DOMAIN

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

echo $DOMAIN | tr -d .

echo ${DOMAIN//./}