I am a biologist and using an program on a computer cluster that generates a lot of data. The program creates a directory named
ExperimentX (where X is a number) that contains files "out.pdb" and "log.txt". I would like to create a script that renames the out.pdb file to out_ExperimentX.pdb (or something to differentiate it from all the other out files) and then moves the new out files to a new, common directory.
Can anyone help with me a script? I am kind of paralyzed without being able to rename and then move these files en mass because there are about 1 million directories with out files.
Thanks...