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, 22.06.2019 07:00
Idon understand these and need some ! ?
Answers: 2
question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
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
Spanish, 02.06.2021 18:50
question
Mathematics, 02.06.2021 18:50
question
History, 02.06.2021 18:50
question
Spanish, 02.06.2021 18:50
question
Mathematics, 02.06.2021 18:50
question
Mathematics, 02.06.2021 18:50
Questions on the website: 13722363