Question: Please if we have a text file that we can call computers. Txt or addresses. Txt. I want to know egrep command (Linux regular expression)

 Please if we have a text file that we can call

Please if we have a text file that we can call computers. Txt or addresses. Txt. I want to know egrep command (Linux regular expression) to solve these questions. Thank you

computers. Txt or addresses. Txt. I want to know egrep command (Linux

You can use theses as a txt file. In fact we just want to know a egrep command. We don't need the answer. If absolutely need files u can use that both file uploaded

1. Use computers.txt a. Find all entries of faculty whose name starts with the letter F, G, H, I, J or K. b. Find all entries of faculty whose name ends with an n. c. Find all entries that are on the 4th floor of their building. This means that the room number is 4xx (so for instance, it should not include 314 just because there is a 4). d. Find anyone whose office is only 2 digits. This one is tricky in that you have to figure out how to specify that it should not include 3-digit numbers. Find all entries that include either a Unix or Linux platform computer. f. Assume that you want to find all faculty who have a PC in their office. While the command egrep 'PC' computers.txt will work in this case, explain why it may not work in general. That is, can you figure out why egrep 'PC' computers.txt may give you wrong answers if we had other entries in the computers.txt file? e. 2. Use addresses.txt a. Find all entries whose zip codes start with the digits 41. b. Find all entries in which their first and last names both start with the letter J. c. Find all entries of people who live in an apartment. NOTE: apartments are not necessarily indicated with the abbreviation apt, see for instance William Tuft and Jill Johnston. d. Find all entries where the street number is at least 4 digits. NOTE: this should not match the zip codes all of which are 5 digits. ST 314, Fox, PC, Unix ST 13, Newman, Mac ST 212, Frank, Linux, PC BP 311, Jones, PC ST 404, Walden, PC, Linux ST 303, Noblitt, PC ST 102, Christensen, Mac ST 301, Ward, PC SB 444, Smith, Mac ST 202, Kirby, Mac, PC ST 361, Lab, Linux ST 333, Hu, Unix, PC Ezank Smith, 911 Pine Street, Highland Heights, KY 41099 Jim Jones, 33 Tall Man Bluff apt B2, Covington, KY 41069 William Tuft, 6922 Crown Blvd Apt C-9, Mt. Adams, OH 41998 Jill Johnston, 8711 Palm Tree Road #8, Dayton, KY 40001 Fred White, 3871 Vine Street, Anderson, OH 45252 Sue Cream, 787 Broadway Drapt #16, Mt. Washington, OH 45101 Barbara Bennett, 11911 Witt Street, Erlanger, KY 41198 Jeff Gordo, 47 Olive Blve Apt 3, Ft. Thomas, KY 41007

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!