<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">Let the Employee file be (Employee.txt):</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">1 Tushar Coder 6-2-91 40000</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">2 Ankur Analyst 21-2-91 35000</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">3 Ravi Designer 23-4-90 37000</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">4 Bhupender Tester 7-6-91 41000</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">5 Sumit Coder 5-9-90 40000</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">6 Arnab Tester 12-8-90 30000</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;">Type in the Terminal</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-fareast-font-family: Arial;"> awk ‘{a+=$5}END{print a}’ Employee.txt</span>
Leave a comment