.bp
.PH "Answers to Unit III Proficiency Test" 5 2 2 3

.L1
ed junk
.br
a
.br
I am a junk file. I'm used for
.br
testing commands.
.br
\&.
.br
w
.br
1,$p
.br
q

.L1
-3,-1p or .-3,.-1p will display the 3 previous lines of text.
-3p will display the text 3 lines before the previous line.

.L1
\&.=, is used to determine the current line.

.L1
g/\\$/s///gp, will delete all $'s from the file

.L1
"i" inserts text before the indicated or current line.
.br
"c" will change the text on the indicated lines to the specified
text.
.br
"m" will delete text from one place and insert it just after
the indicated line.

.L1
The  command "3a" will append text following the 3rd line in the
buffer.

.L1
The command "250w junk" will create the file junk consisting of
line 250 of the current file.

.L1
The command "e junk" will read the file, junk, into the buffer,
destroying the current contents.

.L1
The command, s/.*/(&)/p, will enclose the current line within
parentheses, and display the line.

.L1
"nroff -s +8 -20 junk" will display pages 8 thru 20, stopping
after each page until the Return key is depressed.

.L1
The Nroff program is used for formatting files.

.L1
The command ".pn 8" will number the first page 8.

.L1
The  command ".ul" will underline the next line.

.L1
\&.ds cs This is a characer string
.br
\\\\*(cs
.br
will define and display the character string, cs.

.L1
\&.de mo
.br
\&.tl '\\\\$1 '' \\\\$2'
.br
\&..
.br
\&.mo "user's name" "user's group"
.sp
will define and display the macro, mo.

.L1
The command ".ti 10" will indent the next line of text by
10 spaces.

.L1
~~~
.L2
".br" will begin a new line on the next line, whereas ".sp"
will leave a blank lne and then begin a new line.

.L2
".ls" only needs to be specified once to cause blank lines to
be inserted between lines of text, whereas, ".sp" must be
specified before each line.

.L2
".ad c" will center with line filling, whereas, ".ce" will
center with no line filling.
.E2

.L1
~~
.L2
".ta 10 20 30 40 " sets up tab stops to be evey 10 positions.

.L2
".tr aA" will display a capital A wherever a lower-case A
appears.
.E2

.L1
The current date and page no, will be displayed right-adjusted
at the top of each page.

.L1
".nm 1 3" or ".nm 3 3" will cause every third line to be numbered.

.L1
 07/28/80                                    page 1
.br
		     John Johnson
.br
		     E53  x8007

.L1
		       Unclassified
.br
			   |
.br
			   |
.br
			   |
.br
  Jan. 1980
.br
		       Unclassified

.L1
".I" can be used to underline portions of a line, an entire line,
or several lines, whereas, ".ul" can be used to underline only
an entire line or several lines.

.L1
~~~
.L2
".pp 5" will begin a paragraph with the first line being indented
by 5 spaces.

.L2
\&'PH "EM MACROS" 0 2 2 2' will generate a paragraph with an underlined
heading.  The paragraph will not be indented, but will be preceded and
followed by 2 blank lines.
.E2

.L1
\&.L1 "" 1 I "" .~~
.br
AAAAAA
.br
\&.L2 "" 1 A ( )~~
.br
BBBBBB
.br
\&.L2
.br
CCCCCC
.br
\&.E2
.br
\&.L1
.br
DDDDDD
.br
\&.L2
.br
EEEEEE
.br
\&.L3
.br
FFFFFFF
.br
\&.L3
.br
GGGGGG
.br
\&.E3
.br
\&.E2
.br
\&.E1

.E1
