Summary of Commands and Line Numbers
commands is the command name,
perhaps preceded by one or two line numbers, and,
Only one command is allowed per line,
command may follow any other command
add lines to the buffer (at line dot, unless
a different line is specified). Appending continues until
Dot is set to the last line appended.
Change the specified lines to the new text which follows.
The new lines are terminated by a
If no lines are specified,
Dot is set to last line changed.
Delete the lines specified.
If none are specified, delete line dot.
Dot is set to the first undeleted line,
in which case dot is set to
contents of the buffer are thrown away,
Print remembered filename.
the remembered name will be set to it.
will execute the commands on those lines that contain
which can be any context search expression.
Insert lines before specified line (or dot)
Dot is set to last line inserted.
Move lines specified to after the line
Dot is set to the last line moved.
A single line number is equivalent to
Wipes out all text in buffer
if you give it twice in a row without first giving a
Read a file into buffer (at end unless specified
elsewhere.) Dot set to last line read.
substitutes the characters
If no lines are specified, make the substitution in line dot.
Dot is set to last line in which a
substitution took place, which means that if no substitution took place, dot is not changed.
changes only the first occurrence of
to change all of them, type a
Write out buffer onto a file.
by itself prints the value of
Search for next line which contains
this string of characters.
Dot is set to the line where string
and continues to dot, if necessary.
Context search in reverse direction.