#!/bin/bash
### делаем цикл от -10 до 10 ##### 

for i in {-15..15}; do 

     nb=$(echo "scale=0; 0 + 12*$i" | bc -l)

     sed "s/d3=180/d3=$nb/" et.inp  > n_${i}.inp

#gms n_${i}.inp 1 >& n_${i}.log
     echo -n "$nb    "
     awk '/TOTAL ENERGY =/{print $4}'  n_${i}.log


done