Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Using an IDE or Text Editor of your choice, create and save a UNIX Shell file for the problem given. Before submitting your solution via Canvas, ip the shell script and name the archive, if your name...

1 answer below »
Using an IDE or Text Editor of your choice, create and save a UNIX Shell file for the problem given. Before
submitting your solution via Canvas, ip the shell script and name the archive, if your name is Ha
y
Houdini, for example, HW1_Ha
yHoudini.zip.
In fixed-length or fixed-format records, each field starts and endsat the same place in every record. A
data file that contains data records of equal and constant length might be organized as follows:
aaaaa
cccccdddddddddd
ef ££ 1 fggggehhhhhhhhhh
i kiki XXXXXXXXXX

Theillustrated data file has three records—one record on each line, Each record is made up of twenty six
characters split across four fields When you define a fixed-length format, you specify the length of each
field using a fixed-length record file definition:
Character Field
1-5 Account Numbe
6-11 Tag Numbe
12-16 Amount Paid
17-26 Transaction Date
Write a shell script, ar. sh, to process a file defined by the record file definition illustrated previously. The
Script must generate an output file for each unique Tag Number. Each output file shall be named after the
co
esponding tag. The lines in each file contain two fields separated by a comma: A date, and a
cumulative dollar amount equals to the sum of Amount Paid up to and including the co
esponding date.
Sample Session - Input and Output Files
Command Line
$ ./ar.sh transactions
Sample Input File: transactions OutputFile #1: NJ7339 Output File #2: PA2094

58171NJ XXXXXXXXXX/20/2023 01/10/2023, XXXXXXXXXX/10/2023,84.83
00089PA XXXXXXXXXX/22/2023 01/20/2023, XXXXXXXXXX/13/2023,119.76
58171PA XXXXXXXXXX/20/2023 01/22/2023, XXXXXXXXXX/20/2023,134.73
22924PA XXXXXXXXXX/13/2023 01/22/2023,144.71
93668PA XXXXXXXXXX/10/2023
00089PA XXXXXXXXXX/10,/2023
93668PA XXXXXXXXXX/10/2023
00089N] XXXXXXXXXX/10/2023
00089PA XXXXXXXXXX/10/2023
58171N XXXXXXXXXX/10/2023
22924PA209424:9501/13/2023
93668N] XXXXXXXXXX/22/2023
Grading Policy
+ Student found in violation of the University Policy on Academic Integrity will face disciplinary action,
«+ Thisisanindividual project; collaboration isnot permitted. All work that you represent as your own
must, in fact, be your own.
Answered Same Day Feb 11, 2023

Solution

Vikas answered on Feb 11 2023
32 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here