Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.Write a regular expression that you could use with egrep that will find all en

ID: 3869755 • Letter: 1

Question

1.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).

2.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.

3.Write a regular expression that you could use with egrep that will match lines in the names.txt file that have cities whose names are multiple (i.e. 2 or more) words

Explanation / Answer

1. ls | egrep ^......$

2. ls | egrep ^q | grep -v ^.u

3. ls | egrep ^.*[[:space:]].*$ | grep -v ^.*[[:space:]].*[[:space:]].*$

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote