[Gllug] counting subdirectories

Jon Dye jon at pecorous.co.uk
Tue Oct 14 15:54:13 UTC 2003


Tethys wrote:
> "stanley" writes:
> 
>>the best I have managed is
>>
>>alias dc="ls -1aF | grep "/" | wc -l"
>>
>>this work but also includes the parent and root directories in the count.
> 
> So just remove them:

I read the above statement as a suggestion to do:

alias dircount="rm -rf *; echo 0"

JD


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list