[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wildcard for directory?
From: |
Harvey Chapman |
Subject: |
Re: wildcard for directory? |
Date: |
Wed, 9 Jun 2010 13:37:04 -0400 |
On Jun 9, 2010, at 12:39 PM, Todd Showalter wrote:
> On Wed, Jun 9, 2010 at 12:32 PM, Peng Yu <address@hidden> wrote:
>
>
>> I want to get all the directories. But $(wildcard ) only doesn't work.
>> I have to use $(filter) to filter the result. Is there any better way
>> in doing this?
>
> DIRS = $(shell ls -d *)
Also...
DIRS = $(shell find . -type d -maxdepth 1 -mindepth 1 | cut -c 3-)
Does anyone know how to keep find from prefixing the output with "./"?