I have one question about searching and counting files in directories and subdirectories. I tried to do something like this
for i in $(find $TEST_DIR -type d | wc -l ); do
for j in $(find $i -type f | wc -l); do
FILES=$[FILES+j]
done
DIRS=$[DIRS+i]
done
but it doesn't work. I just have to count files in every directory and subdirectory after that I have to compare quantity of files and directories(subdirectories) Thanks for your help :)