find question
Mel Flynn
mel.flynn+fbsd.questions at mailing.thruhere.net
Wed Aug 5 15:12:41 UTC 2009
On Wednesday 05 August 2009 07:00:40 Glen Barber wrote:
> On Wed, Aug 5, 2009 at 3:36 AM, Matthew
>
> Seaman<m.seaman at 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 $( cat $FILELIST | sed -e 's/\ //g') ; do
> echo $line
> find $line -type f >> $TMPFILE
> done
>
> This *should* fix any directories containing spaces.
And also make find look in non-existing directories.
--
Mel
More information about the freebsd-questions
mailing list