summaryrefslogtreecommitdiff
path: root/hangman.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-25 17:19:45 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-25 17:19:45 -0500
commite3f67d934025ba0c6853e8b8cdaddb97dbac1283 (patch)
tree0c10a0a59aaf25a6a15470208d9b1780e315a18e /hangman.sh
parenta63b908b1f7fbc9560371c4a492759ed564a7e52 (diff)
rename `hangman' to `hangman-helper' to avoid conflict with bsd-games
Diffstat (limited to 'hangman.sh')
-rw-r--r--hangman.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/hangman.sh b/hangman.sh
deleted file mode 100644
index 5e0e138..0000000
--- a/hangman.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-word=$1
-not=$2
-flag=$3
-
-temp=`mktemp`
-
-grep -i '^'"$word"'$' /usr/share/dict/words | grep -iv "['$not]" > "$temp"
-
-if [ "$flag" = '-l' ]; then
- cat "$temp" | tr 'A-Z' 'a-z' | sed 's/\(.\)/\1\n/'g | sort | uniq -c | sort -n
-else
- cat "$temp"
-fi
-rm "$temp"