New feature! Upgrade and increase expert visibility of your issues with Priority Questions.
1. 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.
grep http /etc/services
c and d. No idea so far.
grep -v '#' | less