#!/bin/bash
[email protected]
for file in $(ls /my/directory/name/core*)
do
newname=$(echo ${file}|sed -e "1,1s/core/c.o.r.e/")
mv ${file} ${newname}
echo "File Renamed..."|mail -s "File ${file} renamed to ${newname} ${email_address}
done
Isso deve fazer ...