Skip to content

Instantly share code, notes, and snippets.

@caoer
Created November 18, 2021 17:19
Show Gist options
  • Save caoer/f1e4f2caac04c4854297de594a1ecd8e to your computer and use it in GitHub Desktop.
Save caoer/f1e4f2caac04c4854297de594a1ecd8e to your computer and use it in GitHub Desktop.
for file in ./* ; do mv "$file" "$(echo $file| sed -e 's/\([A-Z]\)/\L\1/g' | sed -e 's/ /_/g')" ; done
@caoer
Copy link
Author

caoer commented Nov 18, 2021

need gnused

HOMEBREW_NO_AUTO_UPDATE=1 brew install gnu-sed

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