Question: Using oracle Linux Include your sample data/output for your commands. Ensure your test data encapsulates the entire realm of possibilities. Recall that egrep will highlight
Using oracle Linux Include your sample data/output for your commands. Ensure your test data encapsulates the entire realm of possibilities.
| Recall that egrep will highlight in red the text that the regular expression matches. |
-
You are given a list of names. The names are of the form FirstName LastName. Write a regular expression to highlight the Lastname and first initial. You can probably find a random name generator online for sample data.
-
Using your name data from the previous question, write a regular expression to find all the last names that begin with A-F. Using this command and another command (sort?), create a file names_af_sorted.txt with the names sorted by last name.
-
You are a professor who has just received a paper that is "double spaced." It turns out, the student interpreted "double spaced" as pressing the spacebar twice between words. Use the tr command to remedy this odd interpretation of double spacing.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
