Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Perform the following Tasks in a bash script: 1 . find the number / count of words in dictionary.txt that have at least three as

Perform the following Tasks in a bash script:1. find the number/count of words in dictionary.txt that have at least three as (eg: bananaapparatus, madagascar, etc).(case insensitive)2. Next, Find the number /count of words in the dictionary that have exactly three 'e's and whereall 'e's are separated by at least one non-'e' character. In other words, you should match a wordsuch as "serenely" (as all three 'e's have at least one non-'e' character separating them) but youshould not match a word such as "beekeeper" (as there are two adjacent 'e's that are not separatedby a non-'e' character). This is a little tricky as you need to consider that some words begin withan uppercase 'E' and regexes are case sensitive by default.3. Finally, find the three most common last three letters for words in dictionary.txt that have twoadjacent 'e's. I recommend doing this in two steps:3a. Find a list of all words in dictionary.txt that have two adjacent 'e's.(The words canhave more than two 'e's as long as at least two of them are adjacent).3b. Then find the three most common final three letters of these words. (Hint: take a lookat how you might use grep to strip off the final three letters and how you might use sortand uniq to find the most frequent occurrences for a given set of data)

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

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

Examine why new ventures fail?

Answered: 1 week ago