subject

Students will create a BASH shell script to process the data contained in an external file. The external file contains particle names and their momentums (one particle per line) collected during a particle accelerator test at CERN. Write a BASH shell script that uses a combination of the Linux commands cat, cut, grep, numaverage, numbound, uniq, sort, and wc to summarize the data contained in an external file Note 1: Students should use the man command to learn more about each of the above Linux commands. Note 2: Students should avoid using any Linux commands other than those listed above to complete their BASH script. The script should accept the name of the external file as a command-line argument The script should display the total number of particles recorded in the file The script should summarize the data of each unique particle (species): Note 1: Do NOT create temporary files to store data - chain commands together with piping. Note 2: All decimal values should be displayed to six (6) decimal places. Name of particle species Total number of occurrences of the species Minimum momentum of the species Maximum momentum of the species Average momentum of the species Two (2) data files are provided for use with the BASH script: small. dat and large. dat Use the small. dat file to test and perfect the BASH script Use the large. dat file to produce the output you will include in the Linux Lab submission

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 15:00
What questions about an audience should be asked during presentation preparation? check all that apply. what does the audience already know about the topic? how will multimedia tools inspire the audience? is the information interesting and engaging? how will this information affect the presentation? will the audience change the message’s purpose? what is likely to interest the audience?
Answers: 3
question
Computers and Technology, 25.06.2019 13:30
Which tab contains the font style attributes? home insert review view
Answers: 1
question
Computers and Technology, 25.06.2019 15:40
Which is most likely to represent a single machine instruction for a small cpu? 0 11 11101101101 01
Answers: 1
question
Computers and Technology, 25.06.2019 16:00
Which formulas would work to combine cells with first, middle, and last names from columns a through c and row 2 into a new cell?
Answers: 1
You know the right answer?
Students will create a BASH shell script to process the data contained in an external file. The exte...
Questions
question
World Languages, 02.09.2020 19:01
question
History, 02.09.2020 19:01
question
Chemistry, 02.09.2020 19:01
question
Mathematics, 02.09.2020 19:01
Questions on the website: 13722360