File: cracklib-format

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