Created
March 22, 2019 02:42
-
-
Save evanslai/5264c36a301d2d1efb1bb2bfc22b1e73 to your computer and use it in GitHub Desktop.
shell helper functions
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
* toUpperLower.sh |
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
toLower() { | |
echo $1 | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' | |
} | |
toUpper() { | |
echo $1 | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment