Design Scripts  «Prev  Next»

Diagramming Script Flow - Exercise

Creating a Shell Script Outline

Objective: Create an outline of a script to guide you in writing it.

This is a Java applet


This exercise uses a Java applet to rearrange the steps in this process. If you do not have Java active in your browser or are behind a firewall that does not allow Java applets you will not be able to complete this exercise. If you do not see the applet below click the Submit Button to continue with the course.
You will receive full credit for this exercise.

Instructions

Below are 6 steps that show arranging the steps in a typical script outline, but they are presented out of order. Drag the steps into the correct order, with the first step at the top of the list.
When you think you have the steps in the correct order, click Done. You'll be told whether or not the order is correct. If you didn't get the order right, keep trying. If you get stuck, try clicking Hint. The steps you have in the correct place will have green lights next to them. The steps that are not in the correct place will have red lights next to them.
When you're ready for an explanation, click the Submit button.

Exercise Scoring

You will receive 6 points for this exercise. The exercise is auto-scored; when you have completed the exercise, click the Submit button to receive full credit.
  1. Begin a loop for each of a set of files named| on the command line.
  2. Check whether the file to process exists.
  3. Execute a command to convert the file.
  4. Note the conversion in a log file.
  5. End the loop.
  6. Exit the script.