Determine how many students in the iclassroster file are in


Assignment: Shell & Script Programming with Unix

Consider the provided file named roster and placed in your home directory.

Provide the commands to accomplish the following tasks:

1. Move the file to your ~/IFT250/Exams directory.

2. Change your working directory to ~/IFT250/Exams.

3. Open the file in vi for editing.

4. Get rid of all the double quotes inside the file, save it as roster1 and exit vi.

5. Use the tr command to get rid of the double quotes in the file roster and save it as roster2.

6. Perform a byte by byte comparison of the files roster1 and roster2 and display all mismatches.

7. Overwrite the roster1 file with the roster2 file so that the files are identical.

8. Rename the roster1 file to classroster.

9. Use the cat command to create a file called header that contains the field names written above separated by commas.

10. Open both the header and classroster files in vi and copy the contents of header into classroster as the first line.

11. Now you use appropriate filters learned thus far to arrange the file classroster so it matches the following and save it as iclassroster.
Last Name:FirstName:StudentID:Program and Plan:AcademicLevel:ASURITE

12. Determine how many students in the iclassroster file are in the IT program.

13. Determine how many students in the iclassroster file are seniors in the IT program.

14. Determine the number of of students in the iclassroster file from each academic level

15. Sort the iclassroster file on the Student ID field.

16. Add an email field at the end of the iclassroster file that matches the following format: [email protected].

Attachment:- Roster.rar

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Determine how many students in the iclassroster file are in
Reference No:- TGS02671433

Now Priced at $45 (50% Discount)

Recommended (91%)

Rated (4.3/5)