[buug] ls only to show directories

Tony Godshall togo at of.net
Mon Jan 5 17:58:24 PST 2004


According to johnd,
> I saw someone do a command to just show directories with a really short command
> only using ls...
> 
> not using grep or awk
> 
> anyone know how to do this?

I can meet your first condition but not your second.

  find -type d -maxdepth 1





More information about the buug mailing list