From 4559167e88e4661cb56beb93e5dc6ac4e9a6254b Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 21 Dec 2018 13:46:10 -0600 Subject: [PATCH] cowsayeternal: Add really dumb cowsay script --- cowsayeternal | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 cowsayeternal diff --git a/cowsayeternal b/cowsayeternal new file mode 100755 index 0000000..8a62974 --- /dev/null +++ b/cowsayeternal @@ -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