I want awk to interpret the variable as follows
#!/bin/bash file=tau f=2.54 order=even awk '{sum+=$2}; END {print '${file}_${f}_${order}_v1.xls', sum/NR}' ${file}_${f}_${order}_v1.xls >> safe/P-state-summary.xls
I want to get the desired result as follows:
tau_2.54_even_v1.xls sum/NR
Can anyone help me with this?
scripting bash awk
Sharat chandra
source share