#! /bin/bash for OUT in $( ls *.out ); do MOL=${OUT%.*} qp_convert_output_to_ezfio -o ${MOL} ${MOL}.out done