]> eyrie.org Git - kerberos/krb5-strength.git/blob - cracklib/mkdict
9a61d37fc185b3e9c6070539297ea536fcc26d23
[kerberos/krb5-strength.git] / cracklib / mkdict
1 #!/bin/sh
2
3 ###
4 # This program is copyright Alec Muffett 1993. The author disclaims all
5 # responsibility or liability with respect to it's usage or its effect
6 # upon hardware or computer systems, and maintains copyright as set out
7 # in the "LICENCE" document which accompanies distributions of Crack v4.0
8 # and upwards.
9 ###
10
11 ### in case of explosion, invoke "sort" with "-T" option pointing to a lot
12 ### of free space in a directory somewhere.
13
14 SORT="sort"
15 ###SORT="sort -T /tmp"
16
17 cat $* |
18         tr '[A-Z]' '[a-z]' |
19         tr -cd '\012[a-z][0-9]' |
20         $SORT |
21         uniq |
22         grep -v '^#' |
23         grep -v '^$'