#!/bin/bash
for f in *; do
nf=${f//[^[:alnum:].]/_}
echo "$nf"
mv "$f" "$nf"
done