From 4d4581be01d0f60203e91730f7494e102e03c73c Mon Sep 17 00:00:00 2001 From: St33v Date: Thu, 13 May 2021 12:30:57 +1000 Subject: add flatwords script. "Flat" is not a flatword --- flatwords/flats.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 flatwords/flats.sh (limited to 'flatwords/flats.sh') diff --git a/flatwords/flats.sh b/flatwords/flats.sh new file mode 100755 index 0000000..7b36e78 --- /dev/null +++ b/flatwords/flats.sh @@ -0,0 +1,8 @@ +# Make a list of 'flat' words. +# A flat word is comprised only of letters that do not have risers or descenders +# +# SJP 1 Jan 2021 + +flats=aceimnorsuvwxz + +grep -ix "[${flats}]*" < words | awk '{print tolower($0)}' | sed -rn '/^.{3,99}/p' > flatwords.txt -- cgit v1.3