Shell script to find the number of files present in the current directory without using WC command

in Categories Academic last updated October 14, 2009

Share this on:

4 comment

  1. The wc line in the comment should be:

    ls | wc -l

    (with a lower case l, not uppercase as you have it shown)

    Have a question? Post it on our forum!