Question: #Write an awk script that will output the average of all the sales figures. Input file: Name,Emp ID,Sales,Dept,Resi Andrew,24,88,Eng,Y Brandon,66,14,Mkt,Y Chelsey,8,,Eng,N Deborah,38,,Ift,Y Erik,32,13,Mkt,N Arielle,13,48,Eng,N Shaun,55,78,Ift,N
#Write an awk script that will output the average of all the sales figures.
Input file:
Name,Emp ID,Sales,Dept,Resi
Andrew,24,88,Eng,Y
Brandon,66,14,Mkt,Y
Chelsey,8,,Eng,N
Deborah,38,,Ift,Y
Erik,32,13,Mkt,N
Arielle,13,48,Eng,N
Shaun,55,78,Ift,N
Ninette,3,24,Opr,Y
Nguyen,10,54,Eng,Y
Output expected:
AVG: 35.4444
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
