Question

linux Regular expressions file name: lab3test.txt Employee ID Full Name Phone Age =========== ========= ===== ===...

linux Regular expressions

file name: lab3test.txt

Employee ID     Full Name       Phone   Age
===========     =========       =====   ===
12564   Carol, Tara     (222) 555-1231  44
45321
45612   Knotts, Don     78
29878   Evans, Bob      (222) 341-4311
32122   Smith,  29
41221   Id, Bill        222-231-2322    33
41231
23121   Lemon, Jay      222-321-43
23341   Aaron, John     222-555-7321    34
12564   Carol, Tara     (222) 555-1231  44
45321

Create regular expressions that meet the following criteria. You may use grep or egrep to answer these questions.

1.Display all lines where the employee’s age is greater than 40 years old. Again, don’t think of this as a number, think of it as a series of characters.

Homework Answers

Answer #1

ANSWER

grep "[^-][4-9][1-9]$" lab3test.txt

EXPLANATION (TEXT FILE, CODE AND OUTPUT)

##### FOR ANY QUERY, KINDLY GET BACK, THANKYOU. #####

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT