diff options
Diffstat (limited to 'os1eindopdracht/uhm')
-rwxr-xr-x | os1eindopdracht/uhm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os1eindopdracht/uhm b/os1eindopdracht/uhm index 5d13a13..fbf2305 100755 --- a/os1eindopdracht/uhm +++ b/os1eindopdracht/uhm @@ -34,7 +34,7 @@ if [ -z "$WORD" ]; then [ ! "`wc -l "$DICT" | cut -d' ' -f1`" -gt "0" ] && echo "dictionary file is empty!" && exit 1 # filter words containing apostrophe or space, or words longer than 12 characters - WORD="`sed -e "/' /d" -e '/.\{13\}/d' "$DICT" | sort -R | head -n1`" + WORD="`sed -e "/[' ]/d" -e '/.\{13\}/d' "$DICT" | sort -R | head -n1`" # check if word is empty [ -z "$WORD" ] && echo "no usable words found in dictionary" && exit 1 fi |