You are on page 1of 3

National University of Modern

Languages (NUML), Islamabad.

Lab Report – VII


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.

You might also like