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

1 answer below »
bash


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 Harry Houdini, for example, HW1_HarryHoudini.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: aaaaabbbbbbcccccdddddddddd ef ££ 1 fggggehhhhhhhhhh i kiki 111111111 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 Number 6-11 Tag Number 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 corresponding 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 corresponding date. Sample Session - Input and Output Files Command Line $ ./ar.sh transactions Sample Input File: transactions OutputFile #1: NJ7339 Output File #2: PA2094 58171NJ733909.9801/20/2023 01/10/2023,24.95 01/10/2023,84.83 00089PA209409.9801/22/2023 01/20/2023,34.93 01/13/2023,119.76 58171PA209414.9701/20/2023 01/22/2023,59.88 01/20/2023,134.73 22924PA209409.9801/13/2023 01/22/2023,144.71 93668PA209434.9301/10/2023 00089PA209409.9801/10,/2023 93668PA209429.9401/10/2023 00089N]733914.9701/10/2023 00089PA209409.9801/10/2023 58171N)733909.9801/10/2023 22924PA209424:9501/13/2023 93668N]733924.9501/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 DayFeb 11, 2023

Answer To: Using an IDE or Text Editor of your choice, create and save a UNIX Shell file for the problem given....

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