I _LIKE_ IT (ie 'ls -d */')! :&) Up 'til now I've been using: lld() { ls -l $@ | grep -E ^d return 0 }
But your solution is much more elegant. thks.jeff On Tue, Oct 17, 2000 at 11:49:32PM +0518, USM Bish wrote: > 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/ > > HTH > > alias lsd="ls -d */" should do your job ! > > 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?