Question: Part 2 Regex Download the Regex Practice Data from Moodle. Create RegexAnswers.sh and for each of the questions listed below, write the regex expression necessary


Part 2 Regex Download the Regex Practice Data from Moodle. Create RegexAnswers.sh and for each of the questions listed below, write the regex expression necessary to calculate the answer. Hints: The command grep and egrep are your friends (egrep treats differently than grep) .Be sure to check for word boundaries in your answers "\b' where appropriate .Pipe answers to "wc -l" to get the count 1. How many lines end with a number? 2. How many lines do not start with a vowel? 3. How many 12 letter (alphabet only) lines? 4. How many phone numbers are in the dataset (format: __--___-_._')'? 5. How many city of Boulder phone numbers (Eg: starting with 303-___-_..)? 6. How many begin with a vowel and end with a number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
