Created
December 14, 2018 03:20
-
-
Save lexjacobs/9ad466b0a83b285adb7b0dcb8bed02d3 to your computer and use it in GitHub Desktop.
accepts stdin or asks for input
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
if [ -z $1 ] | |
then | |
echo 'What is your name?' | |
read name | |
output=$name | |
else | |
output=$1 | |
fi | |
cowsay $output | lolcat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment