Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 : Write a script called, script 4 _ 1 . sh that extracts the First Name, Last Name and Adjusted Score columns from
Question :
Write a script called, scriptsh that extracts the First Name, Last Name and Adjusted Score columns from files with similar formatting as randdata.csv do not assume that you will always be given this particular file as input. Sort the data numerically by Adjusted Score and print the top n scores, where is n is specified on the command line as $ and the filename of the data file is $
The invocation of your script may look like the following:
scriptsh randdata.csv
Where for the above example, the top scores are printed.
First Name,Last Name,Adjusted Score
YoYo,Rubics,
Mariko,Sama,
Nakajima,Rocky,
Question :
You suspect a file has been modified, this file is called suspect.txt You do not have a copy of original file, but you do have the file processed.txt which was generated from the original unmodified file using a bash filters.
Write a script called scriptsh that has the inputs:
$ the suspect file
$ the processed file
You may only use the commands you've learned in class so far to solve this problem, so tools like grep, awk, sed cannot be used.
Your script will list the Student numbers that has modified letter grades. Only list each student number once to stdout.
An example invocation would be:
scriptsh suspect.txt processed.txt
May have the output:
The order of the student numbers do not matter.
Click here for a hint on how to compare files
Alternative hint
Question
Write a command called scriptsh that takes in parameter $ which represent the the parent ID For the parent ID list all the process IDs of its children, and their invocation including the parameters to stdout. Kill all the child process of that parent, without killing the parent.
Example invocation:
scriptsh
May produce the following output:
bash tmptestscriptsh
bash tmptestscriptsh
bash tmptestscriptsh
sleep h
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