Hi
if anyone could help me
I did a lot of search and 70% of answer is "how to count files in all subdirectories".
A basic problem for me is how to count files in every subdirectory separately then sort it by number of files
For example:
dir1
file1
file2
subdir11
dir2
dir3
file4
desired result from script:
dir2 0
dir3 1
dir1 2
More detailed problem: count only soflinks referring to certain extension in one subdir level only.
For example:
dir1
link1 to jpg file somewhere
link2 to txt file somewhere
txt file
subdir11
dir2
link2 to jpg file somewhere
link3 to jpg file somewhere
Say I am interested in link to jpgs only. Then sort it by number of occurences
Desired result:
dir1 1
dir2 2
Any help welcome. Bash, perl, python whatever. As simple as possible, please.
Yorr