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.
ANSWER
grep "[^-][4-9][1-9]$" lab3test.txt
EXPLANATION (TEXT FILE, CODE AND OUTPUT)
##### FOR ANY QUERY, KINDLY GET BACK, THANKYOU. #####
Get Answers For Free
Most questions answered within 1 hours.