mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-16 03:44:56 +02:00
scripts/generate-dict.sh: Change the order of operations.
Should remove <=2 length words first then convert to lowercase then remove non base58 lines.
This commit is contained in:
parent
7ee53b7497
commit
eeff86feee
1 changed files with 5 additions and 5 deletions
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
BASE58_ALPHABET=123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
|
||||
|
||||
# 1. Remove any line that contains non base58 characters
|
||||
# 2. Remove lines that are 2 or less characters long
|
||||
# 3. Convert to lowercase
|
||||
# 1. Remove lines that are 2 or less characters long
|
||||
# 2. Convert to lowercase
|
||||
# 3. Remove any line that contains non base58 characters
|
||||
# 4. Sort and remove duplicate lines.
|
||||
LC_CTYPE=C awk "! /[^${BASE58_ALPHABET}]/" < /dev/stdin 2> /dev/null \
|
||||
| sed -r '/^.{,2}$/d' \
|
||||
LC_CTYPE=C sed -r '/^.{,2}$/d' < /dev/stdin 2> /dev/null \
|
||||
| tr '[:upper:]' '[:lower:]' \
|
||||
| awk "! /[^${BASE58_ALPHABET}]/" \
|
||||
| sort | uniq
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue