Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

project 1 Using Vi, create a document called \"Gettysburg\" that contains the te

ID: 3733405 • Letter: P

Question

project 1

Using Vi, create a document called "Gettysburg" that contains the text of the Gettysburg

Address, formatting exactly how it appears here:

http://en.wikipedia.org/wiki/Gettysburg_Address

.

Perform the following actions:

Delete every vowel in the sentence that begins "We have come to dedicate a portion"

Using global search and replace, convert each occurrence of "us" to "U.S."

Delete the 10th line.

Using yank and put, move the last line to the top of the document

Attach your completed document here AND leave a copy in a directory named gettysburg just

below your home directory.

Using the requirements from the 1st project, “Gettysburg”, create a

sed

script to accomplish the

same task. Your artifacts should be placed in a directory called “project5” under your home

directory and must include both the modified copy of Gettysburg and your bash script containing

the sed commands you used.

Explanation / Answer

But, in a larger sense, we can not dedicate—we can not consecrate—we can not hallow—this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for U.S. the living, rather, to be dedicated here to the unfinished work which they who fought here have thU.S. far so nobly advanced. It is rather for U.S. to be here dedicated to the great task remaining before U.S.—that from these honored dead we take increased devotion to that caU.S.e for which they gave the last full measure of devotion—that we here highly resolve that these dead shall not have died in vain—that this nation, under God, shall have a new birth of freedom—and that government of the people, by the people, for the people, shall not perish from the earth.

Shortly after Everett's well-received remarks, Lincoln spoke for only a few minutes.[16] With a "few appropriate remarks", he was able to summarize his view of the war in jU.S.t ten sentences.

Despite the historical significance of Lincoln's speech, modern scholars disagree as to its exact wording, and contemporary transcriptions published in newspaper accounts of the event and even handwritten copies by Lincoln himself differ in their wording, punctuation, and structure.[17][18] Of these versions, the Bliss version, written well after the speech as a favor for a friend, is viewed by many as the standard text.[19] Its text differs, however, from the written versions prepared by Lincoln before and after his speech. It is the only version to which Lincoln affixed his signature, and the last he is known to have written.[19]


Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.

Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. W hv cm t ddct prtn f tht fld, s fnl rstng plc fr ths wh hr gv thr lvs tht tht ntn mght lv. It is altogether fitting and proper that we should do this.

It ends here. It has total 10 lines. Last line is blank

In vi editor use following

/We have come to dedicate a portion

Using global search and replace, convert each occurrence of "us" to "U.S."
:%s/us/U.S./

delete 10the line as
:10<enter>
dd
move the last line to top of the document
:$
:yy
:0
P