Closed
Description
The suggested command for generating a passphrase is not working for me. Can you test it?
export CERTIFY_PASS=$(LC_ALL=C tr -dc 'A-Z1-9' < /dev/urandom | \
tr -d "1IOS5U" | fold -w 30 | sed "-es/./ /"{1..26..5} | \
cut -c2- | tr " " "-" | head -1) ; printf "\n$CERTIFY_PASS\n\n"
It fails with this error sed: -e expression #1, char 7: unknown option to 's'
As I understand the result should have this format:
1234-12345-12345-12345-12345-12345
To archive the about I have used this command
export CERTIFY_PASS=$(LC_ALL=C tr -dc 'A-Z1-9' < /dev/urandom \
| tr -d "1IOS5U" | fold -w 30 | sed 's/.\{5\}/& /g' | cut -c2- | tr " " "-" |\
head -1 | sed 's/-$//') ; printf "\n$CERTIFY_PASS\n\n"
I am opening a PR with the above in case a change is needed.