From owner-freebsd-questions@FreeBSD.ORG Wed Aug 5 01:06:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03607106564A for ; Wed, 5 Aug 2009 01:06:59 +0000 (UTC) (envelope-from jhall@socket.net) Received: from mf5.socket.net (mf5b.socket.net [216.106.26.210]) by mx1.freebsd.org (Postfix) with ESMTP id D81758FC1B for ; Wed, 5 Aug 2009 01:06:58 +0000 (UTC) (envelope-from jhall@socket.net) Received: from [10.129.40.202] (216.106.12.14.reverse.socket.net [216.106.12.14]) by mf5.socket.net (Postfix) with ESMTP id 9681E60657 for ; Tue, 4 Aug 2009 20:06:57 -0500 (CDT) Message-Id: <42D44C8E-1E22-426C-A9AA-0FBF2A52188A@socket.net> From: Jay Hall To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 4 Aug 2009 20:06:56 -0500 X-Mailer: Apple Mail (2.935.3) Subject: find question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 01:06:59 -0000 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