#!/bin/sh
if [ $# != 2 ]; then
	echo "usage: "`basename $0`" source_file target_file"
	exit 1
fi
if [ -f $1 ]; then
	if [ -f $2 ]; then
		for a in `awk '{print $1}' $1`
		do
			grep $a $2
		done
	else
		echo $2" does not exist."
	fi
else
	echo $1" does not exist."
fi
