GNU parallel
For example, to process listed files in parallel:
ls relax/????c2qjkM_.1_????_noH.pdb | parallel -k --eta ./rmsd.awk c2qjkM_.1.pdb {} > rmsds.txt
-k Keep same order
--eta Show the estimated number of seconds before finishing
parallel
replaces {}
by the output files of ls
for this example.