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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started