Hey guys,
So as a core subject in my program i had to take Linux, and i have an assignment which has me completely baffled. the details of it are:
1. Create a script named ~/public/analyze which:
(a) Displays a message asking the user for the filename of an XHTML file.
(b) Accepts one line of input from the user (the filename).
(c) Displays a count of the number of tables rows in the file.
You may assume that each XHTML block-level element is on a separate line.
2. Test the script thoroughly (create some XHTML files if necessary).
3. Include the student assignment submission form as a comment in the script.
4. Set the permission on the script so that your professor can execute it.
BONUS: (+10% of assignment mark): display an error message if the user
enters a filename that does not exist or is not readable.
I was wondering, if anyone here is proficient enough in Lunix scripting to help me out with this as i am completely lost.
Thanks
So as a core subject in my program i had to take Linux, and i have an assignment which has me completely baffled. the details of it are:
1. Create a script named ~/public/analyze which:
(a) Displays a message asking the user for the filename of an XHTML file.
(b) Accepts one line of input from the user (the filename).
(c) Displays a count of the number of tables rows in the file.
You may assume that each XHTML block-level element is on a separate line.
2. Test the script thoroughly (create some XHTML files if necessary).
3. Include the student assignment submission form as a comment in the script.
4. Set the permission on the script so that your professor can execute it.
BONUS: (+10% of assignment mark): display an error message if the user
enters a filename that does not exist or is not readable.
I was wondering, if anyone here is proficient enough in Lunix scripting to help me out with this as i am completely lost.
Thanks