what I'im trying to do is make a simple shell script /bin/bash to count files in a given directory and then add the file count in the directory name.
I can imagine how to count files (with find) and even to store file count in a variable, but I cannot figure it out how to move into dir, then goes back, get the dir path and rename..
I usually use Platypus to convert a shell script into a OSX app, enabling drag&drop.
So the usage should be:
drag a folder into this app the app count files into this folder the app append file count into folder name
Any help will be appreciate