Skip to content

Instantly share code, notes, and snippets.

@pezholio
Forked from pikesley/say-the-swears.sh
Last active November 3, 2016 15:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Swears on a Mac
curl https://peterkwells.github.io/known-uk-swearwords/data/swearwords.csv | tr -s '\015' '\n' | grep -v UID | cut -d ',' -f 1,2 | sed "s:\(.*\),\(.*\):number \1, \2,:" | say
# Assuming you have espeak installed (`brew install espeak` / `apt-get install espeak`)
curl https://peterkwells.github.io/known-uk-swearwords/data/swearwords.csv | tr -s '\015' '\n' | grep -v UID | cut -d ',' -f 1,2 | sed "s:\(.*\),\(.*\):number \1, \2,:" | espeak -v en-uk-wmids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment