Answered step by step
Verified Expert Solution
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: find the numbercount of words in dictionary.txt that have at least three as eg: bananaapparatus, madagascar, etccase insensitive Next, Find the number count of words in the dictionary that have exactly three es and whereall es are separated by at least one none character. In other words, you should match a wordsuch as "serenely" as all three es have at least one none character separating them but youshould not match a word such as "beekeeper" as there are two adjacent es that are not separatedby a none 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 Finally, find the three most common last three letters for words in dictionary.txt that have twoadjacent es I recommend doing this in two steps:a Find a list of all words in dictionary.txt that have two adjacent esThe words canhave more than two es as long as at least two of them are adjacentb 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started