Quote:
Originally Posted by
jim mcnamara
copy and paste precisely what you have for code. Not what I gave you, but what you are trying that throws the error. I do not get that error.
printf "%s\n%s\n%s\n%s\n" "comment" "x y x" "101" "4 7" > newfile
awk '/Done/ {print $2; exit}' Ar_b3lyp_pv5z.out | read col3
awk '/Done/ {print $2; exit}' Cl_b3lyp_pv5z.out | read col4
awk '/Done/ {print $2}' ArCl_b3lyp_pv5z.out | \
awk -v col4="$col4" -v col3="$col3" ' BEGIN { cnt =1.5 }
{printf("%.1f %s %s %s\n", cnt $0, col3 col4); cnt+=.1 }'>> newfile
Thats what I have the name of the files have been substituted. Thanks again.