Created
May 23, 2019 22:58
-
-
Save amritk/0b9501b61be5d6ca0206f96ecef2889a to your computer and use it in GitHub Desktop.
Rename all camel cased vue files to kebab case, including subdirectories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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