#! /bin/bash for INP in $( ls *.inp ); do g09 ${INP}.inp ${INP}.out done