On Wednesday 05 August 2009 07:33:42 Glen Barber wrote:
> On Wed, Aug 5, 2009 at 11:12 AM, Mel
>
> Flynn wrote:
> > On Wednesday 05 August 2009 07:00:40 Glen Barber wrote:
> >> On Wed, Aug 5, 2009 at 3:36 AM, Matthew
> >>
> >> Seaman wrote:
> >> > Try this as:
> >> >
> >> >for line in $( cat $F
On Wed, Aug 5, 2009 at 11:12 AM, Mel
Flynn wrote:
> On Wednesday 05 August 2009 07:00:40 Glen Barber wrote:
>> On Wed, Aug 5, 2009 at 3:36 AM, Matthew
>>
>> Seaman wrote:
>> > Try this as:
>> >
>> > for line in $( cat $FILELIST ) ; do
>> > echo $line
>> > find $line -type f >> $TMP
On Wednesday 05 August 2009 07:00:40 Glen Barber wrote:
> On Wed, Aug 5, 2009 at 3:36 AM, Matthew
>
> Seaman wrote:
> > Try this as:
> >
> >for line in $( cat $FILELIST ) ; do
> >echo $line
> >find $line -type f >> $TMPFILE
> >done
> >
> > *assuming that none of the director
On Wed, Aug 5, 2009 at 3:36 AM, Matthew
Seaman 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 $( cat $FILELIST | s
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 ${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
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.
___
freebsd-questions@freeb
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
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
http://lists.freebsd.org/mailman/listinfo/
On Tue, Aug 4, 2009 at 9:19 PM, Gary Gatten 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 info.
Regards,
-
What is "-type" supposed to do? I've never used it before, never needed it.
- Original Message -
From: owner-freebsd-questi...@freebsd.org
To: freebsd-questions@freebsd.org
Sent: Tue Aug 04 20:06:56 2009
Subject: find question
I am sure this is something I am doing th
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/loc
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
13 matches
Mail list logo