$ ./myscript my.site.com
How to replace all points in the first parameter? Here is my current attempt, but it returns a bad substitution error.
#!/bin/bash dbname=${$1//./_} echo $dbname
dbname=${1//./_}
Remove $ to 1 since $1 and ${1} match.
$
$1
${1}