[Gllug] counting subdirectories

stanley stanley12 at blueyonder.co.uk
Tue Oct 14 18:31:46 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

Thank you all very much for you responses, all sorted now and I have learnt
a lot more.

Stan


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




More information about the GLLUG mailing list