DistributedNetworks DistributedNetworks


Unix Commands  «Prev  Next»

Tracing Shell Scripts - Exercise

Tracing shell scripts

Tracing options


Objective: Run a shell script with tracing options

Exercise scoring

This exercise is auto-scored and is worth 2 points.

Download files

You have access to the error3 script in your shell account.

Instructions

Log in to your shell account and run the error3 script with the following options: 1. Run error3 with the –v option to see the lines before they are run.
2. Run error3 with the –x option to see the lines with their variables translated.
3. Run error3 with the –xv options together.
4. Correct the error, by changing the sort command variable to column instead of col. Run the error3 script again to verify that it works correctly.

Submitting your exercise