#!/bin/echo Source me: .
#
# Copyright (c) 2002-2004 by Frederick Bruckman
# All rights reserved.

# The function takes two arguments:
#
#     Argument #1: the name of the larger file
#     Argument #2: the name of the file to be subtracted from
#                  the larger file
#
# Output, to standard out, is the difference of the first file
# and the second file, considering only the keys (i.e. "$1").
#
subtract_key () {
	awk '
		FNR == NR {
			alldirs[$1] = 0
		}
		FNR != NR {
			if (!($1 in alldirs))
				print $1
		}
	' "$2" "$1"
}
