You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
443 B
27 lines
443 B
#!/usr/bin/env bash
|
|
|
|
# http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
|
|
|
|
# Common stuff
|
|
CYAN="$(tput setaf 6)"
|
|
UNDERLINE="$(tput sgr 0 1)"
|
|
NOCOLOR="$(tput sgr0)"
|
|
function header() {
|
|
echo -e "$UNDERLINE$CYAN$1$NOCOLOR"
|
|
}
|
|
|
|
if [ "$1" = "" ]; then
|
|
echo "Usage: `basename $0` <file> ..."
|
|
exit
|
|
fi
|
|
|
|
header "Weasel words"
|
|
weasel $1
|
|
echo
|
|
|
|
header "Passive voice"
|
|
passive $1
|
|
echo
|
|
|
|
header "Duplicates"
|
|
dups $1
|
|
|