Line Ranges

LineRanges

Many of the commands specified next can be applied to a range of lines, rather than the whole file. To specify a line range;

1.       Get into command mode.

2.       Type a colon.

3.       Type a start line, an optional comma, and a stop line.

This chapter is broken up into the following sections:

Title of the Section

What It Really Means

Just Enough to Get By

Quick start for beginners.

Starting and Stopping vi

What it sounds like.

Position within a File

Scrolling and motion.

Searching and Replacing

Also includes pattern matching examples.

Adding and Deleting Text

Invoking edit mode, also deleting.

Yanking and Putting

Not unlike copy & paste.

Shell Interaction

Shell functions available in an edit session.

 



Linux Desk Reference
Linux Desk Reference (2nd Edition)
ISBN: 0130619892
EAN: 2147483647
Year: 2000
Pages: 174
Authors: Scott Hawkins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net