:: How to count file(s) in directory?? ::

here is the code :

‘ll -1A | wc -l’ –> without quote

but, you have to improve the command, and you must substract result by one.

another sample :  ‘ll -1A *.xls | wc -l’

2 thoughts on “:: How to count file(s) in directory?? ::

  1. pake find lebih enak:
    – gak rekursif
    find . -maxdepth 1 -type f | wc -l
    – kalo mo rekursif tinggal diilangin opsi maxdeptnya
    – ngitung direktori instead of file, tinggal diganti -type nya jadi d
    😀

Comments are closed.