Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to list only directories 2

Status
Not open for further replies.

Nakis

MIS
Jun 5, 2002
37
CY
Is there a way to list only the (sub)directories using the ls command?

thanx
 
ls -l | grep '^d' really worked for me.
ls -lad though didn't give me what I expected.

thank you all guys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top