Last active
July 9, 2022 23:16
-
-
Save sleeyax/788f2f4790b02b5e4275b199be637b2f to your computer and use it in GitHub Desktop.
Simple shell script to convert text to lowercase (GNU/linux)
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
#!/usr/bin/sh | |
if ! [ -z "$1" ] | |
then | |
echo "$1" | tr '[:upper:]' '[:lower:]' | |
else | |
echo "Usage: lcs <text>" | |
echo 'Example: lcs "Foo Bar BAZ"' | |
echo "Output: foo bar baz" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation instructions (globally, any user):
Restart your shell or terminal to use it.