Thanks balajesuri for your quick respons, it's going in the right way!
When executing that command line, he starts to scan every folder (what is good) but i receive after every folder this error :
-e /home//NAME find: 001-2187 The option -maxdepth is not valid.
0
-e /home//NAME/.eclipse find: 001-2187 The option -maxdepth is not valid.
0
-e /home//NAME/.eclipse/RSE find: 001-2187 The option -maxdepth is not valid.
0
That is not a very robust solution. It's more complicated than it needs to be; it's not very portable (because of the echo); and, it will break on directory names with shell, echo escape, or basic regular expression metacharacters.
A better approach:
find . -type f | sed 's@/[^/]*$@@' | sort | uniq -c
It does show me all the files form the specified folder i'm asking but it wont tell me how many files are in for example : dir 1 subdir 1 and dir 2 and dir 3 subdir 1, 2 and 3.
It just gives me a list of all the files in every dir / subdir
Any solution?