Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

No longer need assistance w/ question 12 will be the egrep command that successfully accomplishes the given step. a e11- Find all entries whose zip

No longer need assistance w/ question 12 image text in transcribed

image text in transcribed

will be the egrep command that successfully accomplishes the given step. a e11- Find all entries whose zip codes start with the digits 41 Fill entries in which their first and last names both start with the letter J Find all entries of people who live in an apartment. NOTE: apartments are not hecessarily indicated with the abbreviation apt, see for instance William Tuft and Jill Johnston. d. Find all match the zip codes all of which are 5 digits. entries where the street number is at least 4 digits. NOTE: this should not wh 5. Using equals.txt a. Find all lines that contain an open parenthesis. b. Find all lines that contain an assignment statement of the form variable value where c. Find all lines that contain a mathematical equation of the form value operator value - value is a numeric value. Q13 - What command did you use? value where operator can be any mathematical operand and value is any numeric valuc. The equation does not have to be valid (for instance 9 10 11) Find all lines that contain an assignment statement of the form variable where expression can include literal values (as you did with part a), variables (including Sx), or arithmetic operators like a + 1. Q14-What command did you use? d. expression 6 Using sentences.txt Find all sentences that have words where there are two vowels in a row Q 15-What command did you use? a. b. Find all sentences that contain punctuation marks other than periods. c. Find all sentences that contain at least three words. Q16- What command did you uset 7. Using names.txt Find all entries of people who live in cities whose names are multiple words. Find all entries of people whose cities (if given) are at least 8 letters long. Make sure you do not just search for sequences of 8 letters as this could also get last names. Find all entries of people who have middle initials. Q 17- What command did you use? Find all entries of people whose zip code has "22" in it. NOTE: this should not include Mike Keneally whose street address includes "22". Find all entries of people who have complete addresses (including street number and name, city, state and zip code). Q 18- What command did you use? a. b. c. d. e. 8 Change directory to /usr/share/dict. We will use the Linux dictionary, the file words, for this step. a. Some of the entries consist of words that contain a letter followed by a digit or a digit followed by a letter. Find these and count them (using-c). Find words with that have (at least) 5 consecutive vowels in them (upper or lower case). Q 19- What command did you use? Find words that are exactly 12 characters in length (words longer than 12 should no ppear). c. d. Find words that have a q (or Q) without a u immediately after. e. Find all words that contain the sequence 'aa', 'ii or 'uu' cons ecutively Find all words that have two consecutive punctuation marks. Q20- What command did you use? Find all words that have two punctuation marks that are not consecutive. f. g

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions