Re: List (sub) directories

From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 02/16/05


Date: 16 Feb 2005 04:32:13 GMT

On Tue, 15 Feb 2005 at 19:23 GMT, 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

    In a POSIX shell (bash, ksh, ash, etc):

ls */

    In a Bourne shell:

ls */.

-- 
    Chris F.A. Johnson                  http://cfaj.freeshell.org/shell
    ===================================================================
    My code (if any) in this post is copyright 2005, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License


Relevant Pages

  • Re: List (sub) directories
    ... > Is there a command like ls that lists only the sub-directores of the ... > current dirctory? ...
    (comp.unix.questions)
  • Re: List (sub) directories
    ... >Is there a command like ls that lists only the sub-directores of the ... >current dirctory? ...
    (comp.unix.questions)
  • Re: List (sub) directories
    ... >Is there a command like ls that lists only the sub-directores of the ... >current dirctory? ...
    (comp.unix.shell)
  • Re: List (sub) directories
    ... > Is there a command like ls that lists only the sub-directores of the ... > current dirctory? ...
    (comp.unix.shell)
  • Re: List (sub) directories
    ... > Is there a command like ls that lists only the sub-directores of the ... > current dirctory? ...
    (comp.unix.questions)