PDF Version Available

This document is also available in PDF format: shellvar.pdf

The PDF version includes bookmarks for easy navigation and is optimized for printing.

Accessibility Notice

This document is also available in HTML format at:

https://aholdengouveia.name/IntroLinux/labs/shellvar.html

The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.

Objectives:

Complete the following problems

References, a video, a PowerPoint and some notes are available at my website https://www.aholdengouveia.name/IntroLinux/shellvar.html

How to turn in Scripts

  1. Testing must be submitted along with your code. You should submit a copy of the code and a screenshot or the results of your test so that I can see a successful run of your code. Every script should be tested. A script that doesn't run is worth 0 points.
  2. Comments should be done on EVERY line of code, (this is very bad practice in the real world, never do this for a job) so that I can see that you understand the code that you are submitting. Every line should have an explanation of what that line does. Comments are worth 5 points per script.
  3. For submission you need to submit a copy of your code (actual text NO screenshots of code allowed) and your successful test run of your code for every script.

Scripts

  1. Write a script that will create a file with the date appended to the name. Date should come from the server not you. The name of the file should be one of the towns in our state.
  2. Write a script that will ask the user for their name and then echo out a greeting with their name. Include a comment with a hello and your name
  3. Write a script that will create a madlib about your favourite places. https://en.wikipedia.org/wiki/Mad_Libs The user should be asked for the words that you want to insert, you must come up with the paragraph. The paragraph needs to be at least 3 lines. The story should be about one of your favourite places to visit or somewhere in the world you'd want to live. Make sure to include a code comment that includes one sentence on why you picked that location, be specific. Madlib shouldn't have more than 5 blanks to fill in

Deliverables

One file that includes all the requested information with your name, the date, and the lab title, make sure to follow the requested pattern for scripts, an example is included with the first scripting lab. You need 3 separate scripts for this lab