no apostrophes
This commit is contained in:
parent
19b847f03c
commit
ce662d573c
4
pw.sh
4
pw.sh
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
NUM=${RANDOM:1,-1}
|
NUM=${RANDOM:1,-1}
|
||||||
PASSWORD="$(shuf -n4 /usr/share/dict/words | tr '\n' "${NUM}")"
|
PASSWORD="$(grep -v \' /usr/share/dict/words |shuf -n4 - |tr '\n' "${NUM}")"
|
||||||
PASSWORD="$(echo "$PASSWORD" |sed 's/ *$//')"
|
PASSWORD="$(sed 's/ *$//' <<< "$PASSWORD")"
|
||||||
MOD=$(($RANDOM % 7));
|
MOD=$(($RANDOM % 7));
|
||||||
ARR=( '+' ',' ':' '<' '(' '{' '[' )
|
ARR=( '+' ',' ':' '<' '(' '{' '[' )
|
||||||
DEL="${ARR[$MOD]}"
|
DEL="${ARR[$MOD]}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue