Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!