Created
June 29, 2018 13:02
-
-
Save Juszczak/0f3fb15bbb0217534c3eb652f263cbf2 to your computer and use it in GitHub Desktop.
Decamelize string in bash
This file contains hidden or 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
#!/usr/bin/env bash | |
sed -e 's/\([A-Z]\)/-\1/g' -e 's/^-//' <<< "$@" | awk '{print tolower($0)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment