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