Lab 2
The lab portion of our class is implemented as weekly assignments.
In this lab, you will gain some practice interacting with a Unix shell.
One of the tasks is to create a file with some lines of a poem, and the
details are below.
The file "lab2.log" will contain control characters that we do not want. An easy way to get rid of them is to use "cat" on the file, then copy the output and paste it into a new file ("lab2.txt"). This way, the new file's contents should look exactly like what you saw on screen. Check the new file, and manually edit it if needed. Keep the original "lab2.log" file for your records. Turn in the text file.
Finally, schedule an appointment with one of the TAs, to demonstrate your assignment. The TA will ask you questions about this work, and may vary it as appropriate. For example, you may be asked to provide the number of lines in one of the other files that you have. Another example: you may be asked to use "chmod" to assign read privileges for the file's group.
Thoughts Suggested by a College Examination
(Lord Byron)
A - High in the midst, surrounded by his peers,
B - Magnus his ample front sublime uprearsa:
C - Plac'd on his chair of state, he seems a God,
D - While Sophs and Freshmen tremble at his nod;
E - As all around sit wrapt in speechless gloomb,
F - His voice, in thunder, shakes the sounding dome;
G - Denouncing dire reproach to luckless fools,
H - Unskill'd to plod in mathematic rules.
I - Happy the youth! in Euclid's axioms tried,
J - Though little vers'd in any art beside;
K - Who, scarcely skill'd an English line to penc,
L - Scans Attic metres with a critic's ken.
M - What! though he knows not how his fathers bled,
N - When civil discord pil'd the fields with dead,
O - When Edward bade his conquering bands advance,
P - Or Henry trampled on the crest of France:
Q - Though marvelling at the name of Magna Charta,
R - Yet well he recollects the laws of Sparta;
S - Can tell, what edicts sage Lycurgus made,
T - While Blackstone's on the shelf, neglected laid;
U - Of Grecian dramas vaunts the deathless fame,
V - Of Avon's bard, rememb'ring scarce the name.
W - Such is the youth whose scientific pate
X - Class-honours, medals, fellowships, await;
Y - Or even, perhaps, the declamation prize,
Z - If to such glorious height, he lifts his eyes.