Question: Use the vi editor to create three text files, s1, s2, and s3. Each contains a full list of names as follows. Assignment Goals: To

Use the vi editor to create three text files, s1, s2, and s3. Each contains a full list of names as follows.
 Use the vi editor to create three text files, s1, s2,
and s3. Each contains a full list of names as follows. Assignment
Goals: To learn to use UNIX/Linux file processing utilities to process data
in text filles. Tasks: 1. In your home directory, make a directory

Assignment Goals: To learn to use UNIX/Linux file processing utilities to process data in text filles. Tasks: 1. In your home directory, make a directory called hw3 and change to the hw 3 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 s1 s2 s3 Amanda Jones Amber Johnson Brandon Brown Chris Davis Daniel Hall Elizabeth Walker Frank Thompson Jack Moore Kevin Young Nick Turner Noah Parker Robert Wright Tyler Cooper Aaron Smith Amanda Jones Ben Mi1ler Brandon Brown Brian Wilson Daniel Hall Edward Thomas Frank Thompson George Anderson John Martin Loren Adams Noah Parker Peter Hi11 Steve Jones Nayne Philips Aaron Smith Brandon Brown Chris Davis David Clark Edward Thoma s Jack Moore John Martin Kevin Young Michael Harris Nick Turner Peter Hi11 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. 3.4. Write commands to find a complete list of students who applied for scholarshipls) and output the result to a file named applicants. The result should NOT contain duplicates. Hints: Merge student names in a proper way and remove the duplicates. 3.5. Use a command to replace "Ben with "Benjamin" in the applicants file and save the output to a new file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!