I have problem with number of files in directory
I use
$(ls /test -l | grep '^-' | wc -l)
but this way I retrieve just number of files in the same path but don’t retrieve number of files in subdirectors
if I have
/test/1
/test/1/2
/test/1/3
/test/1/4/1
/test/1/4/2
/test/1/5
my question is how to retrieve number of files in /test ?
Thanks for advice.
try this
I hope this helps.