How to count number of files in a directory?
Rate this page :
![]() ![]() ![]() ![]() ![]() |
[ 0 votes]
|
This simple code allows you to count files in a directory. Use "ext" variables to count files based on extensions. Use (*) to find total file count in a directory.The bash script to count files in a directory is given below.