File: mkdict

package info (click to toggle)
cracklib2 2.7-19
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 384 kB
  • ctags: 114
  • sloc: ansic: 1,931; sh: 67; makefile: 65; perl: 46
file content (23 lines) | stat: -rwxr-xr-x 585 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

###
# This program is copyright Alec Muffett 1993. The author disclaims all
# responsibility or liability with respect to it's usage or its effect
# upon hardware or computer systems, and maintains copyright as set out
# in the "LICENCE" document which accompanies distributions of Crack v4.0
# and upwards.
###

### in case of explosion, invoke "sort" with "-T" option pointing to a lot
### of free space in a directory somewhere.

SORT="sort"
###SORT="sort -T /tmp"

cat $* |
	tr '[A-Z]' '[a-z]' |
	tr -cd '\012[a-z][0-9]' |
	$SORT |
	uniq |
	grep -v '^#' |
	grep -v '^$'