[buug] ls only to show directories
PSoltani at iitcorporation.com
Tue Dec 23 17:46:16 PST 2003
ls -ld */
Try "ls -d */" for even shorter names. The magic is "/" at the end of the command ;-).
> -----Original Message-----
> From: buug-admin at weak.org [mailto:buug-admin at weak.org]On
> Behalf Of johnd
> Sent: Tuesday, December 23, 2003 5:32 PM
> To: buug at weak.org
> Subject: [buug] ls only to show directories
> 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?
> Those who do not understand Unix are condemned to reinvent it, poorly.
> --Henry Spencer (Usenet signature, November 1987)
> Buug mailing list
> Buug at weak.org
More information about the buug