Skip to content

Instantly share code, notes, and snippets.

@andreadellacorte
Last active February 27, 2016 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreadellacorte/f592c1bc961f09c8ab8c to your computer and use it in GitHub Desktop.
Save andreadellacorte/f592c1bc961f09c8ab8c to your computer and use it in GitHub Desktop.
Find lexical illusions - usage: cat file.txt | ./grep-lexical-illusions.sh
#!/bin/sh
# http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
exec egrep -i -n --color -Eo '(\b.+) \1\b' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment