(Solved) : Objectives Learn Use Unix Linux File Processing Utilities Process Data Text Files Tasks 1 Q41392890 . . .

Objectives: To learn to use UNIX/Linux file processing utilities to process data in text files. Tasks: 1. In your home direct

3.4. Write commands to find a complete list of students who applied for scholarship(s) and output the result to a file named

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, Scholarship 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 si s2 83 Amanda Jones Amber Johnson Brandon Brown Chris Davis Daniel Hall Elizabeth Walker Jack Moore Kevin Young Nick Thompson Nick Turner Nora Parker Robert Wright Tyler Cooper Aaron Smith Amanda Jones Ben Miller Brandon Brown Brian Wilson Daniel Hall George Anderson John Martin Loren Adams Nick Thompson Nora Parker Peter Hill Steve Jones Wayne Philips Aaron Smith Brandon Brown Chris Davis David Clark Jack Moore John Martin Kevin Young Michael Harris Nick Turner Peter Hill Robert Wright 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. We were unable to transcribe this imageShow transcribed image text 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, Scholarship 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 si s2 83 Amanda Jones Amber Johnson Brandon Brown Chris Davis Daniel Hall Elizabeth Walker Jack Moore Kevin Young Nick Thompson Nick Turner Nora Parker Robert Wright Tyler Cooper Aaron Smith Amanda Jones Ben Miller Brandon Brown Brian Wilson Daniel Hall George Anderson John Martin Loren Adams Nick Thompson Nora Parker Peter Hill Steve Jones Wayne Philips Aaron Smith Brandon Brown Chris Davis David Clark Jack Moore John Martin Kevin Young Michael Harris Nick Turner Peter Hill Robert Wright 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.

Expert Answer


Answer to Objectives: To learn to use UNIX/Linux file processing utilities to process data in text files. Tasks: 1. In your home d…