Re: find question

2009-08-05 Thread Mel Flynn
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

Re: find question

2009-08-05 Thread Glen Barber
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

Re: find question

2009-08-05 Thread Mel Flynn
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

Re: find question

2009-08-05 Thread Glen Barber
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

Re: find question

2009-08-05 Thread Matthew Seaman
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

Re: find question

2009-08-04 Thread Mike Bristow
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

Re: find question

2009-08-04 Thread Jay Hall
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

Re: find question

2009-08-04 Thread Gary Gatten
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

Re: find question

2009-08-04 Thread Jay Hall
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/

Re: find question

2009-08-04 Thread Glen Barber
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, -

Re: find question

2009-08-04 Thread Gary Gatten
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

Re: find question

2009-08-04 Thread Mel Flynn
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

find question

2009-08-04 Thread Jay Hall
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