Posted April 21, 201410 yr Hello, I would like to write a small program/script and am looking for advice on how to do so. I do not have a preference about which method or language to use, hopefully looking for the simplest way to do this. I have a program that runs on text files e.g. "program file1.txt file2.txt" I have 20 folders that each have 5-10 text files. I want to automatically get the name of the largest size text file from each of the 20 folders, and then run the program on these 20 files as described above. Ideally I could point my script to a folder, and it will automatically find the largest .txt file in each of the subdirectories and run "program file1.txt file2.txt file3.txt ..." Any ideas on how to most efficiently accomplish this? Ideas or links to tutorials if applicable are helpful. Thank you Continue reading...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.