Skip to content

Instantly share code, notes, and snippets.

@amritk
Created May 23, 2019 22:58
Show Gist options
  • Save amritk/0b9501b61be5d6ca0206f96ecef2889a to your computer and use it in GitHub Desktop.
Save amritk/0b9501b61be5d6ca0206f96ecef2889a to your computer and use it in GitHub Desktop.
Rename all camel cased vue files to kebab case, including subdirectories
for file in $(find . -name '*.vue') ; do
mv "$file" "$(echo $file|sed -e 's/\([A-Z]\)/-\L\1/g' -e 's/\/-/\//')"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment