On Thu, 12 Dec 2002, Anuerin Diaz wrote:

> A LOST tip has been sent a few days to the _newbie_ list *hint,hint*
> regarding this... Quoting that
>
> ####[ GNU/Linux One Stanza Tip (LOST) ]#######################
>
> Sub : Directories-Only ls LOST #023
>
> To get the ls of directories only without a listing of files
> in that directory: '$ls -d */' .... if you are on bash shell.
> You may alias a command ( alias lsd='ls -d */' ) and place it
> in your .profile or the sytem /etc/profile ...
>
> ####<[EMAIL PROTECTED]>####################################

That tip won't work with some shells. To be assured
that it will work with any shell, Try Doc Mana's
suggestion or mine here:

ls -al | grep ^d (show subdir . and ..)
ls -l  | grep ^d (show subdir in the current $PWD)

regards,
---
Andre M. Varon, SCSA
http://andre.lasaltech.com

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to