For this assignment, you will:
Do not use an editor unless it specifically states to edit the file. By
“editor” I mean
pico, etc. Despite its name, we don’t
sed to be an editor in this assignment, so you may use it
~cs155/pub; untar it in your home directory.
story.txt, call it
save-storyso that everyone can read it, but nobody can write or execute it.
story.txtbut change all of the occurrences of “Alice” to “Angela Merkel” and store this in a new file called
story.angelawhich contains exactly “und” but does not contain the letter “e” and put it in the file
story.txtand append a line containing only that number to the end of
runmeso that you can read, write and execute it, members of your group can read and execute it, and everyone else can only read it.
runmeand put the output it produces into a file named
runmeand change the number 855 to 355.
runmeagain and put the output it produces into a file named
file_2.txtand put them into a new file named
current.txtwhich contains the current time and date of the machine you are using, as reported by the
runme2and append its output to the file
data.txtinto a file named
dir_adirectory. (You may need to change the permissions of the directory so that you can work in it.)
tarfile compressed with gzip named
result.tgzwhich contains the
At some point, you may decide that you've done something wrong, and want
to start over. You’ll want to get rid of the
but you may have trouble removing it, due to file permissions. Here’s a
cheap way to get rid of it:
mv hw3_files hw3_files.bogus
Voila! It’s been renamed to
hw3_files.bogus, and is therefore out
of your way.
Every semester, some student does nearly everything right,
but then fails to create
result.tgz correctly, and so receives
very few points.
How can you verify that your
result.tgz is good before you turn it in?
Via web checkin, or:
~cs155/bin/checkin HW3 result.tgz
Turn in someone else’s work.