Answer to Question #174470 in Algorithms for Kwame Hayford

Question #174470

Question 4

A) Write a shell script that does the following

Allows the user to enter seven urls into a text file.

Check to see the status of the links as in whether they are working or not Write the name of the url and it’s status into another file.

Append to the file how many urls are working and how many are broken.

[10 marks]

B) With a working example show how IO Redirection works in shell scripting. [7marks]

C) With examples show how each of these external commands work  Awk

  Sed  Grep

D) Why would this process give an error

1) first create the file

touch my_example.sh

2) open it in an editor

gedit my_example.sh

3) write some code

#!/bin/sh

echo “Shell scripting is fun.” 4) run the file ./my_example.sh




1
Expert's answer
2021-04-03T04:16:41-0400
Dear Kwame Hayford, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS