Question: Regular expression question in Linux (Only write the regular expression. Do not include the egrep command and do not enclose it in single or double
Regular expression question in Linux (Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.):
1. Write a regular expression that you could use with egrep that will match lines in names.txt with a zip code that has 22 in it. NOTE: this should not include Mike Keneally whose street address includes 22. Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.
2. Write a regular expression that you could use with egrep that will find all entries in /usr/share/dict/words that are exactly 12 characters in length (words longer than 12 should not appear). Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.
3. Write a regular expression that you could use with egrep that will find all entries in /usr/share/dict/words that have a q (or Q) without a u immediately after. Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
