View Single Post
  #3   (View Single Post)  
Old 29th April 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by sharris View Post
1) How do we get the count of all directories only with-in a directory.

2) and than how to get a list of all directory names with-in a given directory.
I will give you a hint. grep(1) can be your friend.
Code:
$ ls -l | grep ^d
Reply With Quote