Question: Please Help With the following Unix/Linux questions: 1. Regular expression that matches any character followed by letter: x. Answer : 2. Regular expression that matches

Please Help With the following Unix/Linux questions:

1. Regular expression that matches any character followed by letter: x.

Answer:

2. Regular expression that matches words, where a word is a series of ASCII alphabetic characters. Match both upper- and lowercase.

Note: Enter man grep to read about the options of grep. Answer

:

3. Regular expression that matches any word with 6 or more lower or upper case letters Answer:

4. For this question you need to read the UNIX manual for grep by entering: man grep. The regular expression: grep -w "[a-zA-Z]\{5\}" test displays any line from the file: test that has a word with exactly 5 letters.

Write a regular expression to display any line with an IP address.

The format of an IP address is:

ddd.ddd.d.ddd

Where d is a single digit. For example:

193.178.1.010

Note that there should be no character before or after IP. The following are not IPs:

X193.178.1.010

193.178.1.010Y

Answer:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!