Re: List (sub) directories
From: Michael Wang (mwang_at_unixlabplus.com)
Date: 02/16/05
- Next message: Barry Margolin: "Re: Waiting on end of program execution from shell script?"
- Previous message: Chris F.A. Johnson: "Re: List (sub) directories"
- Maybe in reply to: Stachu 'Dozzie' K.: "Re: List (sub) directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Feb 2005 04:39:49 GMT
In article <1108495408.063443.176890@o13g2000cwo.googlegroups.com>,
<50295@web.de> wrote:
>Is there a command like ls that lists only the sub-directores of the
>current dirctory? I am not interested in files
for i in *; do
[[ -d $i ]] && print -- "$i"
done
-- For low fair air travel, take Independence Air - http://www.flyi.com/. Michael Wang * http://www.unixlabplus.com/ * mwang@unixlabplus.com
- Next message: Barry Margolin: "Re: Waiting on end of program execution from shell script?"
- Previous message: Chris F.A. Johnson: "Re: List (sub) directories"
- Maybe in reply to: Stachu 'Dozzie' K.: "Re: List (sub) directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|