for file in a_dir/*;
do
name="${file/test/verify}"
mv "$file" "$newname"
done
for file in a_dir/*;
do
name="${file/test/verify}"
mv "$file" "$newname"
done