From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <set@pobox.com> X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from member.michigannet.com (member.michigannet.com [207.158.188.18]) by chiba.3jane.net (Postfix) with ESMTP id 2F73BABCFC for <gentoo-dev@gentoo.org>; Mon, 6 May 2002 22:09:46 -0500 (CDT) Received: from squish.home.loc (annex-0-3-port16.dialup.coast.net [207.158.191.16]) by member.michigannet.com (8.11.6/8.11.0) with ESMTP id g473Aht23866 for <gentoo-dev@gentoo.org>; Mon, 6 May 2002 23:10:43 -0400 Received: by squish.home.loc (Postfix, from userid 666) id 4E64E27AFF; Mon, 6 May 2002 23:09:37 -0400 (EDT) Date: Mon, 6 May 2002 23:09:37 -0400 From: Paul <set@pobox.com> To: gentoo-dev@gentoo.org Message-ID: <20020506230937.V27749@squish.home.loc> References: <1020734609.6286.4.camel@dhcp101047.res-hall.nwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1020734609.6286.4.camel@dhcp101047.res-hall.nwu.edu>; from m-turk@nwu.edu on Mon, May 06, 2002 at 08:23:29PM -0500 Subject: [gentoo-dev] Re: Recurse directories Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: <mailto:gentoo-dev-request@gentoo.org?subject=help> List-Post: <mailto:gentoo-dev@gentoo.org> List-Subscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>, <mailto:gentoo-dev-request@gentoo.org?subject=subscribe> List-Id: Gentoo Linux developer list <gentoo-dev.gentoo.org> List-Unsubscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>, <mailto:gentoo-dev-request@gentoo.org?subject=unsubscribe> List-Archive: <http://lists.gentoo.org/pipermail/gentoo-dev/> X-Archives-Salt: a9fe5817-4545-4034-96ac-b5dc4d878c6a X-Archives-Hash: f5cf6898351e4921d46dc2f77c4d70b0 "Matthew J. Turk" <m-turk@nwu.edu>, on Mon May 06, 2002 [08:23:29 PM] said: > Hi there - I was wondering if there's a portage command to recurse all > the directories in a given directory. Anybody? I know I could do a ls > -l |grep ^d|cut -cwhatever-1000, but I'm looking for something already > *in* portage, if it's available. Ideally, it would be something that > would return a list, for use in something like: > > for i in `COMMAND` > do > ... > done > > Thanks! > > > > mjt Hi; I think the 'find' command will do whatever you want. eg. 'find . -type d -maxdepth 1 -exec THING {} \;' Paul set@pobox.com