srDFT_G2/Ref/Molecules/g09/create_input.sh

18 lines
193 B
Bash
Raw Normal View History

2019-03-25 22:30:19 +01:00
#! /bin/bash
2019-03-25 22:47:41 +01:00
if [ $# != 1 ]
then
echo "Please provide template file"
fi
2019-03-25 22:30:19 +01:00
2019-03-25 22:47:41 +01:00
if [ $# = 1 ]
then
for XYZ in $( ls *.xyz ); do
MOL=${XYZ%.*}
cat $1 ${MOL}.xyz > ${MOL}.inp
done
fi
2019-03-25 22:30:19 +01:00