With the scripting lab, we used VI editor to create a simple script that would prompt for a user to enter a number, and the script would check whether the number was greater than 10, then echo a response depending on the number entered. If the number was less than 11, the script would say that the “number is not greater than 10” and vice versa if the number was 10 or lower.

For the second part of the lab, we created a script that would ask for a file or directory to check. If the file or directory existed, it would let you know and define whether it is a directory or file, if it did not, the script would create that file.