11 lines
255 B
Plaintext
11 lines
255 B
Plaintext
|
#!/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
|