Skip to content

Instantly share code, notes, and snippets.

@doza
Created April 3, 2018 16:38
Show Gist options
  • Save doza/3dc5268a34dc0f795f5a1240d37eae5f to your computer and use it in GitHub Desktop.
Save doza/3dc5268a34dc0f795f5a1240d37eae5f to your computer and use it in GitHub Desktop.
Select a random line from a file and have the computer say it out loud
# Select a random line from a file and have the computer say it out loud
head -$((${RANDOM} % `wc -l < responses.txt` + 1)) responses.txt | tail -1 | say
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment