Date: Tue, 4 Aug 2009 20:19:52 -0500 From: "Gary Gatten" <Ggatten@waddell.com> To: <jhall@socket.net>, <freebsd-questions@freebsd.org> Subject: Re: find question Message-ID: <70C0964126D66F458E688618E1CD008A0793F2EE@WADPEXV0.waddell.com>
index | next in thread | raw e-mail
What is "-type" supposed to do? I've never used it before, never needed it.
----- Original Message -----
From: owner-freebsd-questions@freebsd.org <owner-freebsd-questions@freebsd.org>
To: freebsd-questions@freebsd.org <freebsd-questions@freebsd.org>
Sent: Tue Aug 04 20:06:56 2009
Subject: find question
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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
and may contain information that is privileged and/or confidential.
If you are not the intended recipient, you are hereby notified that
any review, use, dissemination, disclosure or copying of this email
and its attachments, if any, is strictly prohibited. If you have
received this email in error, please immediately notify the sender by
return email and delete this email from your system."
</font>
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70C0964126D66F458E688618E1CD008A0793F2EE>
