Re: find files in subdirectories

From: Bill Thompson (bill.thompson@GOODYEAR.COM)
Date: Wed Nov 13 2002 - 13:34:55 EST


If your base directories are similar as in your post, then this is probably
the simplest usage:

find /*/ora/PROD -print

If the "PROD" directory could be anywhere then you'll need something like
this:

find / -type d -name PROD -print | xargs find

The above finds all directories named "PROD" and then runs a second find
starting at directory found with the first find :-)

Bill Thompson
Sr UNIX Systems Administrator
The Goodyear Tire & Rubber Co.

Contains Confidential and/or Proprietary Information
May Not Be Copied or Disseminated Without Express Consent of The Goodyear
Tire & Rubber Company.

AIX-L Archives: http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2

----- Original Message -----
From: "Mark Lamport" <lamport@KCMETRO.CC.MO.US>
Newsgroups: bit.listserv.aix-l
To: <aix-l@Princeton.EDU>
Sent: Wednesday, November 13, 2002 11:01 AM
Subject: find files in subdirectories

> 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