11 lines
255 B
Bash
Executable File
11 lines
255 B
Bash
Executable File
#!/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
|