Created
May 24, 2023 01:29
-
-
Save TyeolRik/43fc74688df9d530a17fbcd0c7394503 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
function snakecase_to_camelCase() { | |
local ret | |
ret=$(echo $1 | sed -E 's/_(.)/\U\1/g') | |
echo "$ret" | |
} | |
SomeString="snakecase_looks_very_bad" | |
camelCase=$(snakecase_to_camelCase "$SomeString") | |
echo "$camelCase" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment