Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bash Scripting: I need with the stops I am unable to complete. I am not quite sure how to proceed further, I keep on getting

Bash Scripting: I need with the stops I am unable to complete. I am not quite sure how to proceed further, I keep on getting a blank when I attempt to grep and cut. Plese do not cut corners. I really need to know each step. Thank you very much.

image text in transcribed

image text in transcribed

PART OF THE SCRIPTING THAT WILL BE A PART OF THE ANSWER:

image text in transcribed

Steps for Bash Scripting assignment: 1. Use wget to retrieve the index page from www. cisco.com: a. Command used: wget www.cisco.com S wget www.cisco.co 2. r' index1.html to delete characters from index.html and then Use tr-d save into a new file named index.html1: tr-d r'index1.html a. Command used: tr-d Ar' index.html1 tr-d 'Ir' index1.ht 3. Use grep command to pull the lines we are looking for: (
  • lab3-1.txt *$ grep-r' lab3-1. Command used: index.html 1 grep-r '
  • lab3-2 5. What is unique about the lines we want compared to the other lines? Can we pipe another grep command to the end of our command to extract the lines we want? (save as lab3 3.txt)(Hint-the \ is the escape character.) a. Command used: Look over the output, it is almost clean but still has some issues, develop and pipe a cut command so the output is only web addresses. (save as lab3-4.txt) Review the output again, is there anything else that doesn't belong. If so what command would get rid of it (save as lab3-5.txt)(Only looking for web address) Is there still a problem with our output? Is there still a problem with our output? What is it? What is it? Hint: take a look at some of the options of the sort command 6. 7. 8. Steps for Bash Scripting assignment: 1. Use wget to retrieve the index page from www. cisco.com: a. Command used: wget www.cisco.com S wget www.cisco.co 2. r' index1.html to delete characters from index.html and then Use tr-d save into a new file named index.html1: tr-d r'index1.html a. Command used: tr-d Ar' index.html1 tr-d 'Ir' index1.ht 3. Use grep command to pull the lines we are looking for: (
  • lab3-1.txt *$ grep-r' lab3-1. Command used: index.html 1 grep-r '
  • lab3-2 5. What is unique about the lines we want compared to the other lines? Can we pipe another grep command to the end of our command to extract the lines we want? (save as lab3 3.txt)(Hint-the \ is the escape character.) a. Command used: Look over the output, it is almost clean but still has some issues, develop and pipe a cut command so the output is only web addresses. (save as lab3-4.txt) Review the output again, is there anything else that doesn't belong. If so what command would get rid of it (save as lab3-5.txt)(Only looking for web address) Is there still a problem with our output? Is there still a problem with our output? What is it? What is it? Hint: take a look at some of the options of the sort command 6. 7. 8
  • 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

    Write short notes on Interviews.

    Answered: 1 week ago

    Question

    Define induction and what are its objectives ?

    Answered: 1 week ago

    Question

    Discuss the techniques of job analysis.

    Answered: 1 week ago

    Question

    2. Do you find change a. invigorating? b. stressful? _______

    Answered: 1 week ago

    Question

    How was their resistance overcome?

    Answered: 1 week ago