Linux Command Line – Shell Scripts: Simple Script Example 2, Calculating the Hypotenuse of a Triangle

This video was created for students in my college class on using the Linux/UNIX command line (tonysako.com). This video presents another simple example of a shell script that reads user input, performs a simple calculations and echoes some output to the screen. In this case the code in the script does the old hypotenuse calculation where it reads in numbers for side A side B of a right triangle, and then calculates the hypotenuse.