Question: WRITE IN BASH ( using LINUX ) . Thank you. Create a text file called phoneno.txt with the following content. I highlighted the first 5

WRITE IN BASH (using LINUX). Thank you.
Create a text file called phoneno.txt with the following content. I highlighted the first 5
lines to show that they follow the convention of a phone number.
(123)456-7890
123-456-7890
1234567890
456-7890
4567890
(123)-456-7890
1234-5678
1234567890123
1234567890
Come up with your regex pattern so that the following command outputs only the first 5
lines of phoneno.txt:
$ grep -E "your_pattern_here" phoneno.txt
 WRITE IN BASH (using LINUX). Thank you. Create a text file

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!