.

BCS 215: UNIX Operating Systems

BCS 215: UNIX Operating Systems 
CRN 61998 Summer 2018 
College Name: Farmingdale State College (SUNY)      

Assignment Goals: To learn to use UNIX/Linux utilities and commands to process data in text files.

Tasks:

  1. In your home directory, make a directory called hw2 and change to the hw2 directory.
  2. Use the vi editor to create a file named students which contains the following text (The fields of the record are student ID, student last name, first name, and course ID):
    S001:Jones:Nancy:C410
    S004:Mitchell:Barbara:C206
    S003:Lieberman:Timothy:C304
    S005:Moore:Sarah:C203  
    S002:Polk:Christian:C101  
    S006:Jacobs:Paula:C203  
    S005:Moore:Sarah:C304 
    
  3. Use the vi editor to create a file named instructors which contains the following text (The fields are the instructor’s last name, first name, course ID, and course name):
    Brown:Alice:C203:Java Programming
    Calvin:David:C101:Introduction to Computers
    Capra:John:C304:Algorithms
    Drew:Justin:C301:Data Structures
    Miller:Richard:C206:Computer Networks
    Sanders:Selina:C410:Computer Architecture    
    
  4. Write commands to combine the above two files and generate a file student_instructor that contains student’s ID, last name, first name, course ID, course name, instructor’s last name and first name. Hints: Identify the common field of the two files. Sort each file on the common field and save the result to a new file. Use the join command to combine the two sorted files.
  5. Output the contents of the student_instructor file on the screen. Hints: Use the echo command to output a prompt or an empty line.
  6. Sort the file student_instructor in the order of student ID and output the result to the file report.
  7. Output the contents of the report file on the screen.
  8. Use the awk command to output from the file report the student ID, student’s first name and last name, course ID, course name, instructor’s first name and last name in a neat format on the screen.
  9. Add a command to output “I certify that this submission is my own original work -- ” followed by your full name on the screen.
  10. Use the vi editor to create a script called hw2script that has all your commands in step 4 - 9.
  11. Add the execute permission to the owner, group, and others for your script file.
  12. Run your script.
BCS 215: UNIX Operating Systems

Submission:

Submit a word or pdf document that includes the following two screenshots:

  1. A screenshot of the contents of your script file, i.e., after running the command vi hw2script or cat hw2script
  2. A screenshot of the output of running your script file, i.e., after running ./hw3script.

Sample output after executing the script:

Sample output after executing the script

Name Of USA University

  • Mercer University
  • Middlebury Institute of International Studies at Monterey
  • National University
  • Navitas at the University of Massachusetts, Lowell
  • Navitas at Western Kentucky University
  • New Jersey Institute of Technology
  • North Seattle College
  • Northern Arizona University
  • Northern Kentucky University
  • Northwest Vista College (Alamo Colleges)
  • Old Dominion University
  • Pace University
  • Pace University Global Pathways
  • Palo Alto College (Alamo Colleges)
  • Pennsylvania State University (Penn State, PSU)
  • Pratt Institute
  • Rennert International
  • Riverside Community College
  • Rivier University
  • Robert Morris University
  • Roosevelt University, International Assignment Center, via AssignmentGroup
  • Sacred Heart University
  • SAE USA
  • Saginaw Valley State University
  • Saint Francis University
  • Saint Louis University
  • Saint Mary's University of Minnesota
  • Saint Michael's College
  • San Antonio College (Alamo Colleges)
  • San Joaquin Delta College
  • Santa Barbara City College
  • Savannah College of Art and Design (SCAD)
  • Seattle Central College
  • South Seattle College
  • Southern Arkansas University
  • Southern New Hampshire University (SNHU)
  • St. Edward's University
  • St. John’s University
  • St. Phillip's College (Alamo Colleges)
  • SUNY College at Old Westbury
  • SUNY Fulton-Montgomery Community College
  • SUNY Morrisville State University (via Cambridge Education Group)
  • SUNY New Paltz
  • TecMilenio University (Universidad TecMilenio)
  • Texas International Education Consortium
  • Texas State University
  • Texas A&M University (Texas A&M)
  • The College of New Jersey
  • The Colorado Springs School
  • Troy University
  • Truman State University
  • University of Alabama in Huntsville
  • University of Arkansas
  • University of Bridgeport
  • University of California - Los Angeles (UCLA)
  • University of California Riverside
  • University of Dallas
  • University of Dayton
  • University of Findlay
  • University of Florida (UF)
  • University of Hartford
  • University of Indianapolis
  • University of La Verne
  • University of Louisville
  • University of Missouri, St. Louis
  • University of New Haven
  • University of New Mexico
  • University of Rhode Island (URI)
  • University of San Diego
  • University of South Carolina via Shorelight Education
  • University of Tampa
  • University of Texas at Austin (University of Texas, UT)
  • University of Vermont, International Assignment Center, via AssignmentGroup
  • Valparaiso University
  • Western Michigan University
  • Western New England University
  • Wilbraham and Monson Academy
  • Wright State University
.