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.
B) With a working example show how IO Redirection works in shell scripting.
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
Comments
Leave a comment