cowsayeternal: Add really dumb cowsay script

This commit is contained in:
Salt 2018-12-21 13:46:10 -06:00
parent 70e74bf4c5
commit 4559167e88

10
cowsayeternal Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
cowsaid="$(cowsay "E T E R N A L")"
trap_exit() {
printf "%s" "$cowsaid"
}
trap trap_exit EXIT
while true; do
cowsaid="$(cowsay -n <<< "$cowsaid")"
printf "%s characters of cowsay; hit Ctrl+C to dump them\\n" "$(wc -c <<< "$cowsaid")"
done