Question: b) Consider the following file called phone.txt containing some arbitrary airline phone numbers as follows: (866) 879-7647 (888) 474-7424 (371) 670-6006 (866) 266-5588 (844) 415-3955


b) Consider the following file called phone.txt containing some arbitrary airline phone numbers as follows: (866) 879-7647 (888) 474-7424 (371) 670-6006 (866) 266-5588 (844) 415-3955 (800) 237-2747 (800) 667-2747 Write a complete sed script that will encrypt the phone data according to the following 1. Preprocessing: a. Remove the parentheses from each phone number b. Remove any whitespace from each phone number C. Remove any dashes (ie,'-') from each phone number 2. Transposition (i.e., rearrange the order of individual characters): a. Swap the third and eighth number in each phone number 3. Substitution (i.e., replace characters by other characters) a. Substitute each number in the phone number with random letters, being sure to use an even mix of upper- and lower-case letters 4. Append extra data: a. Append the first 10 letters of your first and last name AFTER the third phone number in the file. If your first and last names combined are shorter than 10 letters, use letters from your middle name as well In this file, for example, my sed script should print the following s sed -r script sed phone.txt FSSFDGDStD FFttDtDFet MarkThomps FSAeSSASFF tGtwArt FoDerDegtD FaDSSDegtD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
