Skip to content

Instantly share code, notes, and snippets.

@pikesley
Last active May 19, 2017 12:16
Show Gist options
  • Save pikesley/d2eaa794703c529be4f1b377f64004df to your computer and use it in GitHub Desktop.
Save pikesley/d2eaa794703c529be4f1b377f64004df to your computer and use it in GitHub Desktop.
Swears on a Mac
curl https://raw.githubusercontent.com/peterkwells/uk-attitudes-to-offensive-language-and-gestures-data/gh-pages/data/list-of-swearwords-and-offensive-gestures.csv | tr -s '\015' '\n' | grep -v UID | cut -d ',' -f 2 | say
# old version below, now broken because Peter changed something - this will read the source of the 404
#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
@paulfitz
Copy link

paulfitz commented Nov 3, 2016

works on ubuntu with say -> spd-say -e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment