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} |
On Wed, Aug 5, 2009 at 3:36 AM, Matthew
Seamanm.sea...@infracaninophile.co.uk 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
On Wednesday 05 August 2009 07:00:40 Glen Barber wrote:
On Wed, Aug 5, 2009 at 3:36 AM, Matthew
Seamanm.sea...@infracaninophile.co.uk wrote:
Try this as:
for line in $( cat $FILELIST ) ; do
echo $line
find $line -type f $TMPFILE
done
*assuming that none of
On Wed, Aug 5, 2009 at 11:12 AM, Mel
Flynnmel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
On Wednesday 05 August 2009 07:00:40 Glen Barber wrote:
On Wed, Aug 5, 2009 at 3:36 AM, Matthew
Seamanm.sea...@infracaninophile.co.uk wrote:
Try this as:
for line in $( cat $FILELIST ) ; do
On Wednesday 05 August 2009 07:33:42 Glen Barber wrote:
On Wed, Aug 5, 2009 at 11:12 AM, Mel
Flynnmel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
On Wednesday 05 August 2009 07:00:40 Glen Barber wrote:
On Wed, Aug 5, 2009 at 3:36 AM, Matthew
Seamanm.sea...@infracaninophile.co.uk
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
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.
What is -type supposed to do? I've never used it before, never needed it.
- Original Message -
From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org
To: freebsd-questions@freebsd.org freebsd-questions@freebsd.org
Sent: Tue Aug 04 20:06:56 2009
Subject: find
On Tue, Aug 4, 2009 at 9:19 PM, Gary Gattenggat...@waddell.com wrote:
What is -type supposed to do? I've never used it before, never needed it.
Gary,
-type allows different types of files to be located -- 'f' - regular
file, 'd' - directory, 'l' - link, etc.
Have a look at find(1) for more
What is -type supposed to do? I've never used it before, never
needed it.
Type is used to specify the type of file to be found.
f is a regular file.
Jay
___
freebsd-questions@freebsd.org mailing list
Ah yes, I do remember now. Plus, for once the syntax is almost self
explanatory. So, did the OPs question get answered?
From: Jay Hall
To: Gary Gatten
Cc: freebsd-questions@freebsd.org
Sent: Tue Aug 04 20:41:22 2009
Subject: Re: find question
What
Ah yes, I do remember now. Plus, for once the syntax is almost self
explanatory. So, did the OPs question get answered?
I think I just found the problem. I am testing now.
There was a blank line at the end of the file.
___
On Tue, Aug 04, 2009 at 08:49:17PM -0500, Gary Gatten wrote:
Ah yes, I do remember now. Plus, for once the syntax is almost self
explanatory. So, did the OPs question get answered?
Yes. But to be clear, one of the lines in the input file is blank,
which means that find is run as
find -type
13 matches
Mail list logo