Question: Please type your answer, thank you :) The subject is UNIX. The data file provided contains an action, followed by a variable number of integers.

Please type your answer, thank you :)

The subject is UNIX.

The data file provided contains an action, followed by a variable number of integers. Write an awk script that will perform the action specified and return the sum of all lines. You may accomplish this using pattern matching, or conditionals.

Data file

ADD,1,3,5,8,10,11,54 SUB,1,2,3,4 ADD,15,18,21,42,37 ADD,1,1,1,0,0,3,16 ADD,4,1,8,0,4,6,13,16,17,20,8,6,4 SUB,13,8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!