So this bash snippet generates copies of file IRC1.gjf to IRC2.gjf, etc etc
for i in {001..40}; do
cp IRC1.gjf “IRC$i.gjf” && sed -i “s/1$/$i/g” “IRC$i.gjf”
done
But I want to edit each file content replacing “point1-F” by “point2-F” etc etc
so we end up with File40.gjf which contains “point40-F”
Appreciate a solution, J
Didn’t try anything because I this is not field of expertise
New contributor
John Simmie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.