find question

Jay Hall jhall at socket.net
Wed Aug 5 01:06:59 UTC 2009


I am sure this is something I am doing that is obviously wrong, but I  
cannot figure it out.

I am reading a list of directories from a file, and then listing all  
of the files in the directory to a file.

Here is the code.

#!/usr/local/bin/bash
         cat ${FILELIST} | while read LINE
         do
                 echo ${LINE}
                 `find ${LINE} -type f >> ${TMPFILE}`
         done

Here is the output.
/usr/home/windowsaccess

find: illegal option -- t
find: illegal option -- y
find: illegal option -- p
find: illegal option -- e
find: f: No such file or directory

Any suggestions would be greatly appreciated.

Thanks,


Jay


More information about the freebsd-questions mailing list