[buug] ls only to show directories
Patrick Soltani
PSoltani at iitcorporation.com
Tue Dec 23 17:46:16 PST 2003
Try this:
ls -ld */
Try "ls -d */" for even shorter names. The magic is "/" at the end of the command ;-).
Regards,
Patrick Soltani.
> -----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
> http://www.weak.org/mailman/listinfo/buug
>
More information about the buug
mailing list