Skip to content

Instantly share code, notes, and snippets.

@oscarolbe
Created April 2, 2019 22:46
Show Gist options
  • Save oscarolbe/8473abba11015333b5756ed1fecba6e4 to your computer and use it in GitHub Desktop.
Save oscarolbe/8473abba11015333b5756ed1fecba6e4 to your computer and use it in GitHub Desktop.
find path_to_folder -depth -exec rename -f 's/(.*)\/([^\/]*)/$1\/\L$2/' {} \;
gsutil -m cp -r /path_to_folder/* gs://bucket
@oscarolbe
Copy link
Author

brew install rename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment