Question: LINUX please. Using the regular expression rules create grep commands that locate the following lines in /etc/services : All lines that contain the string smtp.
LINUX please.
Using the regular expression rules create grep commands that locate the following lines in /etc/services:
All lines that contain the string smtp.
All lines that begin with the string smtp.
All lines that include periods (dots, .)
All lines that include the string ftp except when that string is followed immediately by a dash (-).
All lines in which the letter a follows the letter z.
All lines that include the string https or http-, but not those that include http followed by any other character.
All lines that end with a hash mark (#)
You may need to enclose some of the regular expressions required to accomplish these tasks in quotes, as in grep "IANA" /etc/services.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
