Created
June 19, 2025 12:04
-
-
Save madprops/361ddfcba24023982846aa1f14f50432 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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