Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

b) Consider the following file called phone.txt containing some arbitrary airline phone numbers as follows: {866}{838}{371}{066}{844}879764}4747424670600626655904153955 {000}2372747 {000}6672747 Write a complete sad script called ninor1.

image text in transcribed

b) Consider the following file called phone.txt containing some arbitrary airline phone numbers as follows: {866}{838}{371}{066}{844}879764}4747424670600626655904153955 {000}2372747 {000}6672747 Write a complete sad script called ninor1. sad that will encrypt the phone data according to the following. 1. Propracessing. a. Remove the parentheses from each phone number. b. Remove any whitespace from each phone number. c. Remove any dashes (i.e., "-') from each phone number. 2. Transpositon (i.e, rearrange the order of individual characters): a. Swap the third and eghth number in each phone number. 3. Substtuton (ie e replace characters by other characters) a Substitute each number in the phone number with random lefters, being sure to use an even mix of upper- and lower-case letters. 1. Append extra deta: a. Append the tirst 10 letters of your tirst and last name AF IER the third phone number in the file. If your first and last names combined are sherter than 10 letters, use letters from your middle name as well In this file, for example, my zed script should print the following: 9 sed -r -f minor1.sed phone.txt FB3EDGDAtD BFEtDEDFat IDgedgewg Narkinomp: FGAESSAEEE FTGTHRYTAR FqDerdect. FeDSSDeAtD

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago