File: cracklib-format

package info (click to toggle)
cracklib2 2.8.12-8lenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,952 kB
  • ctags: 168
  • sloc: sh: 9,047; ansic: 2,392; xml: 365; makefile: 203; sed: 16; python: 1
file content (12 lines) | stat: -rw-r--r-- 238 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# This preprocesses a set of word lists into a suitable form for input
# into cracklib-packer
#
gzip -cdf "$@" |
    tr '[A-Z]' '[a-z]' |
    tr -cd '\012[a-z][0-9]' |
    sort |
    uniq |
    grep -v '^#' |
    grep -v '^$'