scrabble.sh
#!/bin/sh
#DTPD#
DICT=/usr/share/dict/words
test "$1" || { cat "$0"; exit 1; }
exec grep -i "$@" "$DICT" | less
#
# Useage:
# scrabble.sh PATTERN
# Example:
# scrabble.sh '^a[lonrchl]\{4,7\}$'
#!/bin/sh
#DTPD#
DICT=/usr/share/dict/words
test "$1" || { cat "$0"; exit 1; }
exec grep -i "$@" "$DICT" | less
#
# Useage:
# scrabble.sh PATTERN
# Example:
# scrabble.sh '^a[lonrchl]\{4,7\}$'