(Solved) : Objectives Learn Use Undlinux File Processing Utilties Process Data Text Files Tasks 1 Hom Q41380000 . . .

Objectives To learn to use UNDLinux file processing utilties to process data in text files Tasks 1. In your home directory, m

Objectives: To learn to use UNIX/Linux file processing utilities to process data in text files. Tasks: 1. In your home direct3.4. Write commands to find a complete list of students who applied for scholarship(s) and output the result to a file namedObjectives To learn to use UNDLinux file processing utilties to process data in text files Tasks 1. In your home directory, make a directory caled hw3 and change the current working directory to the hw3 directory 2. Use the vi editor to create three text file s1, s2, and s3. Each contains a list of full names as follows. Assume a school department offers thee scholarships bo students. A student can apply for one scholarship or more scholarships. The tles s1, s2, and s3 are students who applied for Scholarship 1, Scholarship 2, and Scholarship 1 respectively. The student names are sened in the alphabetic order. Note: Don’t leave any space at the end of a ine or a file. 2 3 Amanda Jones Amber dohnson Aaron Smith Amanda Jones Aaron Smith Brandon Brown Brandon Brown Ben Miller Chris Davis Chris Davis Brandon Brown Brian Wilson Daniel Ral2 George Anderson David Clark Daniel Hall Jack Moore Eszabeth Malker Jack Moore John Martin evin Young evin Young Nick Thompson Nick Turner John Martin Michael arris Loren Adams Nick Thompson ick Turner Peter Bill Robert Wright Mora Parker Nora Parker Robert Mright Tyler Cooper Peter ill Steve Jones Mayne Philips 3 Use the vi editor to create a script caled hw3ript and add commands as follows: 3.1. Write commands to ind and display the number of students who applied for each scholarship 32. Write commands to fnd and dsplay students who applied for two scholarships, Scholarship 1 and 2 Scholarship 1 and 3, or Scholarship 2 and 3, respectively. 3.3. Wite commands to find and display students who applied for all three scholarships Hints: Store results of 3.2 in intermediate fles and use them in step 3.3 3.4. Write commands to find a complete list of students who applied for scholarshipls) and output the result to a fle named applicants. The resut should NOT contain duplicates and should be sorted in alphabetic order Hints: Merge student files in a proper way and remove the duplicanes 35. Use a command to replace “Nick with “Nicholas” in the applicants fle and save the output to a new file applicants, final 36 Use a command to find all the lines that contain the string “lohn in the applicants_final ile. 37. Write a command to display the final list of students who applied for scholarships) 3 Write a command to find and display the total number of students who applied for scholarshipl 1 Wrte a command to output “1 certify that this submission is my own original work-followed by your full name 4.Add the execute permission to the owner, group, and others for your script file S.Run your script. The cutput should be similar to the sample output listed below. Submission: Submit a word or pdf document that contains the following two screenshots: 1A screenshot of the contents of your script file, Le., after running the command vi hw3seript cat hw3seripe o 2.A screenshot of the output ater running your soript fle, ie, after esecuting /hw3script. Objectives: To learn to use UNIX/Linux file processing utilities to process data in text files. Tasks: 1. In your home directory, make a directory called hw3 and change the current working directory to the hw3 directory. 2. Use the vi editor to create three text file s1, s2, and s3. Each contains a list of full names as follows. Assume a school department offers three scholarships to students. A student can apply for one scholarship or more scholarships. The files s1, s2, and s3 are students who applied for Scholarship 1, Scho la rs hip 2, and Scholarship 3, respectively. The student names are sorted in the alphabetic order. Note: Don’t leave any space at the end of a line or a file. sl s2 s3 Aaron Smith Aaron Smith Amanda Jones Amber Johnson Amanda Jones Brandon Brown Ben Miller Brandon Brown Chris Davis David Clark Chris Davis Brandon Brown Daniel Hall Brian Wilson Jack Moore Daniel Hall Elizabeth Walker John Martin Jack Moore George Anderson John Martin Kevin Young Michael Harris Kevin Young Nick Thompson Loren Adams Nick Turner Nick Thompson Nora Parker Nick Turner Peter Hill Robert Wright Nora Parker Robert Wright Tyler Cooper Peter Hil1 Steve Jones Wayne Philips 3. Use the vi editor to create a script called hw3script and add commands as follows: 3.1. Write commands to find and display the number of students who applied for each scholarship. 3.2. Write commands to find and display students who applied for two scholarships, Scholarship 1 and 2, Scholarship 1 and 3, or Scholarship 2 and 3, respectively. 3.3. Write commands to find and display students who applied for all three scholarships. Hints: Store results of 3.2 in intermediate files and use them in step 3.3. 3.4. Write commands to find a complete list of students who applied for scholarship(s) and output the result to a file named applicants. The result should NOT contain duplicates and should be sorted in alphabetic order. Hints: Merge student files in a proper way and remove the duplicates. 3.5. Use a command to replace “Nick” with “Nicholas” in the applicants file and save the output to a new file applicants_final. 3.6. Use a command to find all the lines that contain the string “John” in the applicants_final file. 3.7. Write a command to display the final Ilist of students who applied for scholarship(s) 3.8. Write a command to find and display the total number of students who applied for scholarship(s). 3.9. Write a command to output “I certify that this submission is my own original work. -” followed by your full name. 4. Add the execute permission to the owner, group, and others for your script file 5. Run your script. The output should be similar to the sample out put listed below. Submission: Submit a word or pdf document that contains the following two screenshots: 1. A screenshot of the contents of your script file, i.e., after running the command vi hw3script cat hw3script or 2. A screenshot of the output after run ning your script file, i.e., after executing ./hw3script. Show transcribed image text Objectives To learn to use UNDLinux file processing utilties to process data in text files Tasks 1. In your home directory, make a directory caled hw3 and change the current working directory to the hw3 directory 2. Use the vi editor to create three text file s1, s2, and s3. Each contains a list of full names as follows. Assume a school department offers thee scholarships bo students. A student can apply for one scholarship or more scholarships. The tles s1, s2, and s3 are students who applied for Scholarship 1, Scholarship 2, and Scholarship 1 respectively. The student names are sened in the alphabetic order. Note: Don’t leave any space at the end of a ine or a file. 2 3 Amanda Jones Amber dohnson Aaron Smith Amanda Jones Aaron Smith Brandon Brown Brandon Brown Ben Miller Chris Davis Chris Davis Brandon Brown Brian Wilson Daniel Ral2 George Anderson David Clark Daniel Hall Jack Moore Eszabeth Malker Jack Moore John Martin evin Young evin Young Nick Thompson Nick Turner John Martin Michael arris Loren Adams Nick Thompson ick Turner Peter Bill Robert Wright Mora Parker Nora Parker Robert Mright Tyler Cooper Peter ill Steve Jones Mayne Philips 3 Use the vi editor to create a script caled hw3ript and add commands as follows: 3.1. Write commands to ind and display the number of students who applied for each scholarship 32. Write commands to fnd and dsplay students who applied for two scholarships, Scholarship 1 and 2 Scholarship 1 and 3, or Scholarship 2 and 3, respectively. 3.3. Wite commands to find and display students who applied for all three scholarships Hints: Store results of 3.2 in intermediate fles and use them in step 3.3 3.4. Write commands to find a complete list of students who applied for scholarshipls) and output the result to a fle named applicants. The resut should NOT contain duplicates and should be sorted in alphabetic order Hints: Merge student files in a proper way and remove the duplicanes 35. Use a command to replace “Nick with “Nicholas” in the applicants fle and save the output to a new file applicants, final 36 Use a command to find all the lines that contain the string “lohn in the applicants_final ile. 37. Write a command to display the final list of students who applied for scholarships) 3 Write a command to find and display the total number of students who applied for scholarshipl 1 Wrte a command to output “1 certify that this submission is my own original work-followed by your full name 4.Add the execute permission to the owner, group, and others for your script file S.Run your script. The cutput should be similar to the sample output listed below. Submission: Submit a word or pdf document that contains the following two screenshots: 1A screenshot of the contents of your script file, Le., after running the command vi hw3seript cat hw3seripe o 2.A screenshot of the output ater running your soript fle, ie, after esecuting /hw3script.
Objectives: To learn to use UNIX/Linux file processing utilities to process data in text files. Tasks: 1. In your home directory, make a directory called hw3 and change the current working directory to the hw3 directory. 2. Use the vi editor to create three text file s1, s2, and s3. Each contains a list of full names as follows. Assume a school department offers three scholarships to students. A student can apply for one scholarship or more scholarships. The files s1, s2, and s3 are students who applied for Scholarship 1, Scho la rs hip 2, and Scholarship 3, respectively. The student names are sorted in the alphabetic order. Note: Don’t leave any space at the end of a line or a file. sl s2 s3 Aaron Smith Aaron Smith Amanda Jones Amber Johnson Amanda Jones Brandon Brown Ben Miller Brandon Brown Chris Davis David Clark Chris Davis Brandon Brown Daniel Hall Brian Wilson Jack Moore Daniel Hall Elizabeth Walker John Martin Jack Moore George Anderson John Martin Kevin Young Michael Harris Kevin Young Nick Thompson Loren Adams Nick Turner Nick Thompson Nora Parker Nick Turner Peter Hill Robert Wright Nora Parker Robert Wright Tyler Cooper Peter Hil1 Steve Jones Wayne Philips 3. Use the vi editor to create a script called hw3script and add commands as follows: 3.1. Write commands to find and display the number of students who applied for each scholarship. 3.2. Write commands to find and display students who applied for two scholarships, Scholarship 1 and 2, Scholarship 1 and 3, or Scholarship 2 and 3, respectively. 3.3. Write commands to find and display students who applied for all three scholarships. Hints: Store results of 3.2 in intermediate files and use them in step 3.3.
3.4. Write commands to find a complete list of students who applied for scholarship(s) and output the result to a file named applicants. The result should NOT contain duplicates and should be sorted in alphabetic order. Hints: Merge student files in a proper way and remove the duplicates. 3.5. Use a command to replace “Nick” with “Nicholas” in the applicants file and save the output to a new file applicants_final. 3.6. Use a command to find all the lines that contain the string “John” in the applicants_final file. 3.7. Write a command to display the final Ilist of students who applied for scholarship(s) 3.8. Write a command to find and display the total number of students who applied for scholarship(s). 3.9. Write a command to output “I certify that this submission is my own original work. -” followed by your full name. 4. Add the execute permission to the owner, group, and others for your script file 5. Run your script. The output should be similar to the sample out put listed below. Submission: Submit a word or pdf document that contains the following two screenshots: 1. A screenshot of the contents of your script file, i.e., after running the command vi hw3script cat hw3script or 2. A screenshot of the output after run ning your script file, i.e., after executing ./hw3script.

Expert Answer


Answer to Objectives To learn to use UNDLinux file processing utilties to process data in text files Tasks 1. In your home directo…