Skip to content

Instantly share code, notes, and snippets.

@madprops
Created June 19, 2025 12:04
Show Gist options
  • Save madprops/361ddfcba24023982846aa1f14f50432 to your computer and use it in GitHub Desktop.
Save madprops/361ddfcba24023982846aa1f14f50432 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Infinite loop to display a random word every 20 minutes
while true; do
# Pick a random word from nouns.txt
random_word=$(shuf -n 1 nouns.txt)
# Display the word using cowsay
clear && echo "$random_word" | cowsay
# Wait for 20 minutes (1200 seconds)
sleep 1200
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment