Find all files in the current directory and execute a sed command to replace all strings ending with a period with a string containing the original string surrounded by hyphens.
find . -exec sed -i 's/\(.*\)\./*-*-\1-*-/g' {} \;