I am running a csh script that runs and does various things. I finally want to do some multiplication.
This is the code I need to run within my csh file.
{
Totals[$5] += $3*$4
}
END {
for (x in Totals)
print i, Totals
}
Right now I have to run this on a separate file for it to work. So once I run my ./csh file. I think have to run this awk file by doing
awk -f AWK csh
to get my final results, I want AWK to be done in my CSH file so I only use one file.
Thanks