blob: 2db438298f35c1026c32f6562c1940290620c3f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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"
pr-weasel $1
echo
header "Passive voice"
pr-passive $1
echo
header "Duplicates"
pr-dups $1
|