xref: /freebsd/lib/libc/db/test/hash.tests/makedb.sh (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1#!/bin/sh
2#
3#	@(#)makedb.sh	8.1 (Berkeley) 6/4/93
4
5awk '{i++; print $0; print i;}' /usr/share/dict/words > WORDS
6ls /bin /usr/bin /usr/ucb /etc | egrep '^(...|....|.....|......)$' | \
7sort | uniq | \
8awk '{
9	printf "%s\n", $0
10	for (i = 0; i < 1000; i++)
11		printf "%s+", $0
12	printf "\n"
13}' > LONG.DATA
14