wget
and tar
to download
your starter code.
wget
to download the file at http://cs.longwood.edu/courses/cmsc160/f17/files/lab5.tgz
tar -xvzf lab5.tgz
ls
to see that there is a new directory called lab5
cd lab5
to change directory to the lab5 directory
rm filename
permanently removes (deletes) the file
cp oldname newname
copies the file at oldname to a new file at newname.
mv oldname newname
moves the file from oldname to the file newname. Note this does not copy, can overwrite files and removes the original file!
man
program. Try out man cp
to see all of the options.
repeatString input: a string str and an integer n output: a string containing str repeated n times example: "jd" 3 => "jdjdjd"
everyOther input: a string str output: a string containing every other character of str example: "dymacek" => "dmck"
replaceChar: intput: a string str output: replaces each 'E' with 3 example: "DYMACEK" => "DYMAC3K"
When you are done you may hand in your lab by using make handin
.
The lab is due at 11:59pm Sept. 26th 2017.