Skip to content

Instantly share code, notes, and snippets.

@lexjacobs
Created December 14, 2018 03:20
Show Gist options
  • Save lexjacobs/9ad466b0a83b285adb7b0dcb8bed02d3 to your computer and use it in GitHub Desktop.
Save lexjacobs/9ad466b0a83b285adb7b0dcb8bed02d3 to your computer and use it in GitHub Desktop.
accepts stdin or asks for input
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