Answer the question
In order to leave comments, you need to log in
How to find out the structure of a directory?
In general, there is a folder with subfolders with photos .
I made ls -lR dir/ | grep "^-" | wc
it. It showed that there are 119343 photos.
How can I find out what extensions are there (jpg, png or something else)
And how can I find out the maximum nesting depth?
Answer the question
In order to leave comments, you need to log in
View statistics for extensions
find ./dir/ -type f | awk -F . '{print $NF}' | sort | uniq -c | sort -nr
tree -d ./dir/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question