CIS 201: Linux Shell Scripting

lewing@isc.tamu.edu

Gabelli School of Business, CIS Department

| CISWEB Doug White | RWU Main | White Hat Research | Email Doug | Access Data |

CIS 201: Lab 4

This is a simple sorting problem for you.

Generate three random numbers using $RANDOM. If you want to "fix" your results use

RANDOM=n //where n is some fixed integer

Now, compute the average of the three and store it in a vector.

print the original vector.

Sort the vector lowest to highest and print it on the screen.

 

| Contact | © 2005 Secure Technology, LLC. |