test that pwgen does not produce duplicate words


 / Published in: Bash
 

  1. WORD_COUNT=9999; pwgen -01AB -N $WORD_COUNT > set1; pwgen -01AB -N $WORD_COUNT > set2; cat set1 set2 | uniq -c | sort -rn | grep -v 1

Report this snippet  

You need to login to post a comment.