#!/bin/sh # DelList.sh # 2007-06-29 # Chieh Cheng # http://www.CynosureX.com/ # GNU General Public License (GPL), Version 2, June 1991 while read line do if [ -f "${line}" ] then printf "Deleting ${line} . . . " rm "${line}" echo "deleted." else echo "${line} does not exist!" fi done