IT3110 @ utahtech
The script will do some random things and should be run from ssh.cs.utahtech.edu
. Present a menu to the user and the option they select will determine the outcome. The script should be in a loop and will exit when they select the appropriate option. The functionality for each option MUST be placed into a function.
Here are the items to present to the user:
different
language. The text you can translate is found here. Use wget
in your script to download the file if it doesn’t already exist. The user will be prompted for the language that they would like to use. Here are the allowable language options pirate
, chef
, eleet
, fudd
. It doesn’t really matter what these do… just note that they are all commands that are found on the scratch
server. You can translate
text by doing something like eleet alice_sample.txt
. (You can see what each of these languages does by running man filters
on scratch, but you don’t really need to). Your script should prompt the user for one of the above languages, translate the file, and output it to a file named $language.txt
in your home directory on ssh. (i.e. fudd.txt, chef.txt, etc…)(You can see that chef
is found in /usr/games/chef
on scratch.) So, to clarify, your script will be executed from the ssh server, but will ssh to scratch to do this step.aeiou
. The following words are examples that match: wow
, xenon
, yeses
. I found a total of 1401 words that matched. This option should print just the first 10 words that match.a
or b
or c
and end with a d
or e
or f
. I found a total of 2841 words. Your script should just print out the last 10 words that match this patternI may show you a solution for this towards the end of class.