#!/bin/sh

TMPFILE=$1
OURDIR=$(pwd -P)

if [ -f "$TMPFILE" ]; then
	while IFS= read -r line; do
		if [ -d "$line" ]; then
			cd "$line" 2>/dev/null
			if [ $? -eq 0 ]; then
				fulldir=$(pwd -P)
				find "$fulldir" -type f 2>/dev/null
			fi
			cd "$OURDIR" 
		fi
	done < $TMPFILE
	rm $TMPFILE
fi
