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:
- In your home directory, make a directory called hw2 and change to the hw2 directory.
- 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
- 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
- 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.
- Output the contents of the student_instructor file on the screen. Hints: Use the echo command to output a prompt or an empty line.
- Sort the file student_instructor in the order of student ID and output the result to the file report.
- Output the contents of the report file on the screen.
- 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.
- Add a command to output “I certify that this submission is my own original work -- ” followed by your full name on the screen.
- Use the vi editor to create a script called hw2script that has all your commands in step 4 - 9.
- Add the execute permission to the owner, group, and others for your script file.
- Run your script.

Submission:
Submit a word or pdf document that includes the following two screenshots:
- A screenshot of the contents of your script file, i.e., after running the command vi hw2script or cat hw2script
- A screenshot of the output of running your script file, i.e., after running ./hw3script.
Sample output after executing the script:

Name Of USA University
- American Public University System
- American University of the Caribbean, School of Medicine
- Campsbell University
- Colorado State University
- Drew University
- Florida Atlantic University
- Full Sail University
- George Mason University
- Grand Canyon University [GCU]
- Harrisburg University
- Hofstra University
- Hult International Business School
- Illinois state university
- Ivy League
- Liberty University
- Marshall University
- Navitas at the University of Massachusetts, Boston
- Navitas UMass Dartmouth
- New York Institute of Technology
- Oregon State University
- Richard Bland College of William and Mary
- Saint Leo University
- SUNY Geneseo
- Texas University
- University of Alabama at Birmingham
- University of Chicago
- University of Idaho
- University of New Hampshire Navitas
- University of North Dakota
- University of South Florida
- Virginia Commonwealth University [VCU]
- Washington State University
- Adelphi University via Shorelight Education
- American University
- Archbishop Riordan High School
- Arizona State University (Global Launch)
- Art Institute of Chicago, Illinois
- Auburn University via Shorelight Education
- Bellevue College
- Boston Academy of English
- California State University
- California State University - Monterey Bay
- California State University - San Bernardino
- California State University, Fresno
- Carnegie Mellon University, H. John Heinz, III College
- City College of New York
- Cleveland State University
- Contra Costa College
- De Anza College
- Delaware County Community College
- DePaul University
- Diablo Valley College
- Duquesne University
- EC Language Centres
- Elon University
- Embassy English
- Embry - Riddle Aeronautical University, Daytona Beach
- Florida Institute of Technology
- Foothill College
- Glendale Community College
- Gonzaga University
- Green River College
- Grier School
- Hawaii Pacific University
- Hillsborough Community College
- Humboldt State University
- ILSC
- James Madison University
- John F. Kennedy University
- Kent State University
- Kings Education
- La Salle University
- Lamar University
- Lawrence Technological University
- Long Island University, Brooklyn
- Los Medanos College
- Loyola University of Chicago
- Lynn University
- Manhattan Language
- Maryland Institute College Of Art
- Marymount California 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