Date: Tue, 4 Aug 2009 17:17:17 -0800 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org Subject: Re: find question Message-ID: <200908041717.17286.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <42D44C8E-1E22-426C-A9AA-0FBF2A52188A@socket.net> References: <42D44C8E-1E22-426C-A9AA-0FBF2A52188A@socket.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 04 August 2009 17:06:56 Jay Hall wrote:
> 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
[ -z "${LINE}" ] && continue
> echo ${LINE}
> `find ${LINE} -type f >> ${TMPFILE}`
> done
>
> Here is the output.
> /usr/home/windowsaccess
>
^^^^ empty line
--
Mel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908041717.17286.mel.flynn%2Bfbsd.questions>
