Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, this is my first time ever using bash scripting for web . I have the following task. I initially retrieved web from www.cisco.com by

Hello, this is my first time ever using bash scripting for web. I have the following task. I initially retrieved web from www.cisco.com by using wget. Then I used the command line to clean it up to where I only have the websites to convert to IP addresses.

My first question; did I clean this up enough to perform the following tasks in the instruction I provided below. If not, how do I clean it up?

Second: How do I do the task asked after below.?

Thank you so much.

TASK:

image text in transcribed

text.txt cleanred up from www.cisco.com using wget and linux commands:

image text in transcribed

image text in transcribed

image text in transcribed

Now we have a clean list of domain names, so the next step is convert them to IP addresses Host command host is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa, (man the host command for details) Bash allows for online programming code such as for each type loops in the form: for in ; do ; done for example: for. varl in S(cat mylist), de wc Svar1; done would give you a word count of each file list in the file called mylist. (the S indicates a variable vice text) Use a bash for loop to convert the host name to an ip addresses (save as lab3-7.txt)

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

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

10:16 AM Sun Jan 29 Answered: 1 week ago

Answered: 1 week ago