On Wed, Aug 5, 2009 at 3:36 AM, Matthew
Seaman<[email protected]> wrote:
>
> Try this as:
>
>    for line in $( cat $FILELIST ) ; do
>        echo $line
>        find $line -type f >> $TMPFILE
>    done
>
> *assuming that none of the directory names in $FILELIST contain spaces*
>


   for line in $( cat $FILELIST | sed -e 's/\ //g') ; do
       echo $line
       find $line -type f >> $TMPFILE
   done

This *should* fix any directories containing spaces.

-- 
Glen Barber
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to