#!/bin/sh while read sh do path=`find | grep $sh |sed -n '1p'` cp $path tmp/ done < all-sh-list