Changing File Extensions

#!/bin/bash
find /path/to/root/directory -name "*.yml" -type f | while read file; do
    mv -- "$file" "${file%.yml}.yaml"
done