[Gllug] counting subdirectories
stanley
stanley12 at blueyonder.co.uk
Tue Oct 14 14:39:44 UTC 2003
Hopefully this will be an easy one for most,
For my university coursework I have been asked to create an alias that will
count and display the number of subdirectories in one directory, and so far
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.
Anyone with any tips.
TIA
Stan
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list