diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-09-10 04:14:12 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-09-10 04:14:12 +0000 |
commit | c092684fe390c2b9762795413e137d14d93b29fd (patch) | |
tree | 7a0ea109c6b8b7c16b3bc2f53ec0ce1f4f4df985 /scripts | |
parent | f3edaabb5d0a5a232b9eff45a40c46f2f04ea95e (diff) | |
download | man-pages-c092684fe390c2b9762795413e137d14d93b29fd.tar.gz |
Minor changes
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/find_repeated_words.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/find_repeated_words.sh b/scripts/find_repeated_words.sh index 9d8300979a..6d885e60a8 100644 --- a/scripts/find_repeated_words.sh +++ b/scripts/find_repeated_words.sh @@ -6,12 +6,15 @@ # # Usage: sh find_repeated_words.sh [file...] # + +MANWIDTH=2000 + for file in "$@" ; do words=$(man -l "$file" 2> /dev/null | col -b | \ tr ' \008' '\012' | sed -e '/^$/d' | \ awk 'BEGIN {p=""} {if (p==$0) print p; p=$0 }' | \ grep '[a-zA-Z]' | tr '\012' ' ') - if test "X$words" != "X"; then + if test -n "X$words"; then echo "$file: $words" fi done |