Skip to content

Instantly share code, notes, and snippets.

@Juszczak Juszczak/decamel.sh
Created Jun 29, 2018

Embed
What would you like to do?
Decamelize string in bash
#!/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
You can’t perform that action at this time.