diff options
| author | St33v <github@f3rr3t.com> | 2021-05-13 12:30:57 +1000 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2021-05-13 12:30:57 +1000 |
| commit | 4d4581be01d0f60203e91730f7494e102e03c73c (patch) | |
| tree | 6989e642591f9395c9597787d2300e61e48e8b00 /flatwords/flats.sh | |
| parent | c2fd3e86c7d6b1e2e68713a5a92677a32d8542a3 (diff) | |
add flatwords script. "Flat" is not a flatword
Diffstat (limited to 'flatwords/flats.sh')
| -rwxr-xr-x | flatwords/flats.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
