Owner's manual

Using the r (Read) Subcommand........................................................................................169
Displaying and Changing the Current Line...............................................................................170
Finding Your Position in the Buffer......................................................................................171
Changing Your Position in the Buffer...................................................................................171
Finding Text.........................................................................................................................172
Searching Forward Through the Buffer................................................................................172
Searching Backward Through the Buffer..............................................................................172
Changing the Direction of a Search....................................................................................173
Making Substitutions—The s (Substitute) Subcommand...............................................................173
Substituting on the Current Line..........................................................................................173
Substituting on a Specific Line............................................................................................173
Substituting on Multiple Lines.............................................................................................174
Substituting Every Occurrence of a String............................................................................174
Removing Characters........................................................................................................174
Substituting at the Beginning or End of a Line......................................................................175
Using a Context Search....................................................................................................175
Deleting Lines—The d (Delete) Subcommand............................................................................175
Deleting the Current Line...................................................................................................176
Deleting a Specific Line....................................................................................................176
Deleting Multiple Lines......................................................................................................176
Moving Text—The m (Move) Subcommand...............................................................................176
Changing Lines of Text—The c (Change) Subcommand.............................................................177
Changing a Single Line....................................................................................................177
Changing Multiple Lines...................................................................................................178
Inserting Text—The i (Insert) Subcommand...............................................................................178
Using Line Numbers.........................................................................................................178
Using a Context Search....................................................................................................179
Copying Lines—The t (Transfer) Subcommand...........................................................................179
Using System Commands from ed...........................................................................................180
Ending the ed Program..........................................................................................................180
C Displaying Version Information With vproc................................................181
Finding Product Files.............................................................................................................181
Running vproc......................................................................................................................181
Running vproc as a Full Command.....................................................................................181
Running vproc Interactively................................................................................................182
Interpreting vproc Output.......................................................................................................182
Successful Retrievals.........................................................................................................182
Partial or Unsuccessful Retrievals........................................................................................183
D OSS Core Utilities User Commands..........................................................185
Usage and Migration Considerations......................................................................................189
nroff Formatting Tool........................................................................................................189
Using Commands That Share Identical Names.........................................................................189
Glossary..................................................................................................191
Index.......................................................................................................205
Contents 9