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.
  1. 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.

  2. 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.

  3. 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

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!