wget
which takes a url (web address) and will download the file at that address.
wget address
downloads the file at the address and saves it to the current directory
wget
to download the file at http://cs.longwood.edu/courses/cmsc160/f17/files/lab6.tgz
tar -xvzf lab6.tgz
to extract the code into a directory named lab6.
input: two lines of text msg and word output: the string msg with all occurences of word removed example: "jboboo" "bo" => "jo" example: "borkborkbork" "ork" => "bbb" example: "bboboboo" "bo" => "bo"
beginsWith input: a string str and a string toTest output: a boolean value indicating if str starts with the string toTest example: beginsWith("julian","jul") => true example: beginsWith("borkbork","ork") => false
removeFirst input: a string str and an integer n output: a string containing all but the first n characters of str example: removeFirst("julian",2) => "lian" example: removeFirst("borkbork",4) => "bork"
When you are done you need to hand in your lab. You will to change to the
directory which contains the directory you wish to hand in. We will use
the make handin
command.
The lab is due at 11:59pm Oct. 3rd 2017.