1 |
"Matthew J. Turk" <m-turk@×××.edu>, on Mon May 06, 2002 [08:23:29 PM] said: |
2 |
> Hi there - I was wondering if there's a portage command to recurse all |
3 |
> the directories in a given directory. Anybody? I know I could do a ls |
4 |
> -l |grep ^d|cut -cwhatever-1000, but I'm looking for something already |
5 |
> *in* portage, if it's available. Ideally, it would be something that |
6 |
> would return a list, for use in something like: |
7 |
> |
8 |
> for i in `COMMAND` |
9 |
> do |
10 |
> ... |
11 |
> done |
12 |
> |
13 |
> Thanks! |
14 |
> |
15 |
> |
16 |
> |
17 |
> mjt |
18 |
|
19 |
Hi; |
20 |
|
21 |
I think the 'find' command will do whatever you want. |
22 |
eg. 'find . -type d -maxdepth 1 -exec THING {} \;' |
23 |
|
24 |
Paul |
25 |
set@×××××.com |