subject

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: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:10, nxusasmangaliso8780
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
image
Computers and Technology, 23.06.2019 20:00, shaheedbrown06
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
image
Computers and Technology, 24.06.2019 16:00, alexisbeasley2
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, gabby0148
On the pie chart below, which “slice” represents 30% of the budget?
Answers: 2
You know the right answer?
Write a BASH shell script that uses a combination of the Linux commands cat, cut, grep, numaverage,...

Questions in other subjects:

Konu
English, 08.10.2019 00:00