Quote:
Originally Posted by
buffoonix
What do you consider a file?
In the Unix sense, almost anything, except maybe other dirs?
Thanks for interest in my problem.
Whatever a file really is - I am interested in softlinks only.
Softlinks have the same name and extention as file they are pointing to.
Some background. What is it for.
I do a lot of photos /jpg / of my city. They sit in directiories organized by day.
Then I have directory 'city_by_street'. Exactly 5500 street_name directories.
Each street_name is a directory. Into these directories falls softlinks.jpg pointing to actual files. Some street_name directories have subdirectiores that I would like to ignore in my problem /eg. Best, Logo, whatever/
Finally - I would like to know which street_name directory have the smallest number of photos /in this case softlinks with jpg extension/ - so I could update it first.
Again, example:
Aba_Street /there are no whitespaces, no strange characters etc/
Best /subdirectory to ignore with whatever content inside/
Winter /subdirectory to ignore/
20080202_001.jpg /softlink/
Ada_Street
20080103_003.jpg /softlink/
20080422_001.jpg /softlink/
Desired output of the script:
Aba_Street 1
Ada_Street 2
Then I know I need to go to Aba Street first.
Thanks again
Yorr