Skip to content

Instantly share code, notes, and snippets.

@unacceptable
Created May 16, 2020 06:48
Show Gist options
  • Save unacceptable/6475d53af791d68e242c9dcd70c537df to your computer and use it in GitHub Desktop.
Save unacceptable/6475d53af791d68e242c9dcd70c537df to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
# Change file extensions
while read -r f; do
git mv "${f%.*}.yml" "${f%.*}.yaml"
done < <(
find . -name "*.yml"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment