xref: /freebsd/lib/libc/db/test/hash.tests/makedb.sh (revision 6ae1554a5d9b318f8ad53ccc39fa5a961403da73)
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