[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simple sh or alias to list directories

I am on bash. This is part of the the output of the 
command "ls -d */" on my home directory.  Only  the 
sub dirs are displayed.

aedes:~$ls -d */
Mail/		    page/		nsmail/
bd4v605/	    free/		tklatex/


alias lsd="ls -d */" should do your job !

USM Bish

On Tue, Oct 17, 2000 at 02:36:05PM +0000, Thomas Halahan wrote:
> Hello,
> I am trying to determine an easy alias or sh script that will list
> only the directories in a directory.  It should have similar
> functionality to the ls command.  E.g.
> [tom]$ lsd ~
> should list only the directories in my home folder, not the files.
> Does  anyone know of a way to do this please?
> Regards 
> Tom.

Reply to: