Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me write these short scripts. I have to write 2 AWK scripts and 1 BASH script using the hw-solutions.txt, student1.txt, and student2.txt files
Please help me write these short scripts. I have to write 2 AWK scripts and 1 BASH script using the hw-solutions.txt, student1.txt, and student2.txt files given as input.
Thank You!
student1.txt Looks like this:
# 1 Reading #@ 1a i #@ 1b ii # 2 Binary and hex numbers #@ 2a 18 #@ 2b 0x5
student2.txt Looks like:
# 1 Reading #@ 1a i #@ 1b ii,iv # 2 Binary and hex numbers #@ 2a #@ 2b 0x7
Instructions:
as ol Ban tiaring wth e are problmi, . AWK and Bash. Create a basic homework-grading system as follows. An answers file will be formatted so that lines starting with #@ are problem number lines, and answers are given on lines following problem number lines. Blank lines, and lines starting with # (but not #@) are ignored. For example, file 'hw-solutionstxt, looks like this: # 1 Reading #@ 1a 1 #0 1b ii,iv # 2 Binary and hex numbers #6 2a #@ 2b 0x5 as ol Ban tiaring wth e are problmi, . AWK and Bash. Create a basic homework-grading system as follows. An answers file will be formatted so that lines starting with #@ are problem number lines, and answers are given on lines following problem number lines. Blank lines, and lines starting with # (but not #@) are ignored. For example, file 'hw-solutionstxt, looks like this: # 1 Reading #@ 1a 1 #0 1b ii,iv # 2 Binary and hex numbers #6 2a #@ 2b 0x5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started