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