This lab report summarizes a student's work on Lab Exercise 8 at the National University of Modern Languages in Islamabad. The student used grep to find information about the HTTP protocol in the /etc/services file, ignored comment lines starting with # using grep -v, removed blank lines with another grep -v, and used sed to remove text after the / symbol on each line, leaving just protocol names and port numbers.
This lab report summarizes a student's work on Lab Exercise 8 at the National University of Modern Languages in Islamabad. The student used grep to find information about the HTTP protocol in the /etc/services file, ignored comment lines starting with # using grep -v, removed blank lines with another grep -v, and used sed to remove text after the / symbol on each line, leaving just protocol names and port numbers.
This lab report summarizes a student's work on Lab Exercise 8 at the National University of Modern Languages in Islamabad. The student used grep to find information about the HTTP protocol in the /etc/services file, ignored comment lines starting with # using grep -v, removed blank lines with another grep -v, and used sed to remove text after the / symbol on each line, leaving just protocol names and port numbers.
Lab 8 Subject: Operating System Submitted To: Sir Zain Ul Abideen Submitted By: Muhammad Fakhar Ali Roll Number - 2085 Program & Semester: BSCS & 5th (Evening) Lab Exercise No.8 a. Use grep to find information about the HTTP protocol in the file /etc/services. b. Usually this file contains some comments, starting with the ‘#’ symbol. Use grep with the -v option to ignore lines starting with ‘#’ and look at the rest of the file in less. c. Add another use of grep -v to your pipeline to remove blank lines (which match the pattern ˆ$). d. Use sed (also in the same pipeline) to remove the information after the ‘/’ symbol on each line, leaving just the names of the protocols and their port numbers.