XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX **************************************** * IS380 Lab4a *...

I must have assignment by 8pm even if its not completed. theres 3 questions on lab4a, and 4 questions on lab4b.


714-123-4567 818-312-6754 310-424-5346 714-464-8653 645-65-4524 456-465-54379 564-87-4465 254-354-5345 544-453-5654 878-54-3453 354-55-4531 5643-45-4643 714-23-4867 **************************************** * IS380 Lab4a * Date: 7/23/2021 * Due: 8:30PM * * Your name: -- your name here -- **************************************** Lab4a: regex and sed exercises In Google classroom, you will find this lab4a.txt and numbers.txt % cat numbers.txt 714-123-4867 818-312-6854 310-424-5846 714-464-8853 645-65-4584 456-465-5837 564-87-4485 254-354-5845 544-453-5854 878-54-3483 354-55-4581 5643-45-4643 714-23-4867 Some examples for your references: Ex1: To get all number entries that end with 3: % cat numbers.txt | sed -n '/3$/p' 714-464-8653 878-54-3453 5643-45-4643 Ex2: To delete all number entries that end with 3, 4, 5, 6: % cat numbers.txt | sed '/[3-6]$/d' 714-123-4567 456-465-5437 354-55-4531 ================================================ Lab exercises begin: (write your answer on this file and submit it once done.) Total 3 questios. 5 points each. Copy and paste your command and output from your terminal. (1) To get all number entries that start with 5 (2) To get all number entries that look like phone numbers with area code 714 (714-xxx-xxxx) (3) To delete all number entries that look like SSN (xxx-xx-xxxx) **************************************** * IS380 Lab4b (10 points, 10/25) * Date: 7/23/2021 * Due: 8:30PM * * Your name: -- your name here -- **************************************** Lab4b: Bash coding exercises In Google classroom, you will find this lab4b.txt and numbers.txt % cat numbers.txt 714-123-4867 818-312-6854 310-424-5846 714-464-8853 645-65-4584 456-465-58379 564-87-4485 254-354-5845 544-453-5854 878-54-3483 354-55-4581 5643-45-4643 714-23-4867 Please write a Bash script to 1) read in the file numbers.txt 2) output all phone numbers with proper message Phone numbers are: ... 3) output all SSN with proper message: SSN's are: ... 4) output numbers that look like errors (not matching phone number pattern nor SSN pattern) Potential errors are: ... After you are done, submit your script.
Jul 24, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here