Question
Regex: Please provide a UNIX command for each of the following: 1. To start, here is a simple puzzle. What are all the English words
Regex:
Please provide a UNIX command for each of the following:
1. To start, here is a simple puzzle. What are all the English words that begin with qu and ending with y. [Hint: Remember that each line of the dictionary file contains only a single word.]
2. The next puzzle is an old one. Find a common English word that contains all five vowels a, e, i, o, u in that order. The letters do not have to be adjacent, but they must be in alphabetical order. That is, a must come before e, which must come before i, and so on.
3. Our last puzzle involves a search of the Unix file system for historical artifacts. Many of the original Unix commands were two letters long; the text editor was ed, the copy program was cp, and so on. Let us find all such commands. To solve the puzzle, you need to know that the very oldest Unix programs reside in the /bin directory. There are other old Unix command in /usr/bin. Be sure to also provide a count of how many such commands there are.
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