#! /bin/bash BASIS=$1 for XYZ in $( ls *.xyz ); do MOL=${XYZ%.*} cat ccsdt_fc.template ${MOL}.xyz > ${MOL}.inp done