Re: find files in subdirectories

From: Jean-Marc Monnez (monnez.jean-marc@AGORA.MSA.FR)
Date: Wed Nov 13 2002 - 12:51:39 EST


For all files in subdirs :
either : find /u02/ora/PROD /u03/ora/PROD -print
or : find $(find . -name PROD -print) -print

To list only .dbf files, add the argument (don't miss the quotation marks) :
-name "*.dbf"

-- JMM

-----------------------------
Jean-Marc MONNEZ
MSA / AGORA / ATD
monnez.jean-marc@agora.msa.fr
-----------------------------

Bob Booth - UIUC wrote :

> find is doing what you asked it... Shooting off the hip:
>
> find . -name PROD -print -exec find {} -print \;
>
> Might do what you want.
>
> bob
>
> On Wed, Nov 13, 2002 at 10:01:04AM -0600, Mark Lamport wrote:
> > I want to create a file which contains the full path names for all files
> > within certain subdirectories. Like /u02/ora/PROD/system.dbf
> > /u03/ora/PROD/temp.dbf.
> > If I ; ' find . -name PROD -print > PRODdata ' I only get /u02/ora/PROD
> > /u03/ora/PROD when I want /u02/ora/PROD/system.dbf /u03/ora/PROD/temp.dbf
> >
> > How can I get it like I want?
> >
> > thanks in advance.
> >
> > Mark Lamport



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:20 EDT