Hi, thank you for contacting JustAnswer.com. My name is Russell. I will do my best to provide the right answer to your question.
I find your requirements for the task quite complete, except two details:
- you need to open all account balance files in a folder... with what? just 'open a file' means nothing in UNIX scripting, if it is not being opened by some program.
- when do you need the finished result?