Revision 454be75d modules/launch_cp2k_molecule_seule.sh

b/modules/launch_cp2k_molecule_seule.sh
56 56
  echo "loop finished"
57 57
  go_on=false
58 58
done
59

  
60
for dir in ${Molecule_results_path}/${molecule}/${molecule}_*; do
61
	n_line="$(grep -n "i =" ${dir}/*-pos-1.xyz | awk 'END{print}' | awk 'NF=1{print}' | awk 'sub(".$", "")')"
62
  n_line_1="$(expr $n_line - 1)"
63
	awk -v ligne="$n_line_1" 'NR>=ligne{print}' ${dir}/*-pos-1.xyz > ${dir}/last_geo.xyz
64
done

Also available in: Unified diff