xc census.dataand pressing the ENTER or RETURN key. The screen will be filled with the text you previously typed. It will display only the first 17 lines of the file.
bottomand press the ENTER or RETURN key to move to the last line of the file. Then type
inputand press the ENTER or RETURN key.
Type the following lines as you did in the previous section.
MA<TAB>NE<TAB><TAB>6016 RI<TAB>NE<TAB><TAB>1003 CT<TAB>NE<TAB><TAB>3287 NY<TAB>MA<TAB><TAB>17990 NJ<TAB>MA<TAB><TAB>7730 PA<TAB>MA<TAB><TAB>11882When you are finished, remember to press the ENTER or RETURN key twice to leave insert mode and return to command mode.
XC uses the "current line" (the line directly above the scale) as its reference point. The current line is marked by ")))))". The "input" command tells XC to insert the lines you type after the current line. When you first start XC, the top of the file is the current line. To change the current line, you can type any of the following commands on the command line
bottom | makes the last line of the file the current line | ||
top | makes the top of your file the current line | ||
down n | moves the current line n lines down (e.g., down 20) | ||
up n | moves the current line n lines up (e.g., up 8) | ||
:n | moves the current line to line n (e.g., :7) |
In the next few steps, you can try all three methods.
975Notice that the characters "975" overwrite the first three characters in "12938". With the cursor still positioned on the "3" that is left from "12938", press the character-delete key twice to remove the extra characters "38".
Note: If you are using telnet, HyperTerminal or Kermit on a microcomputer with an Ethernet card, see the discussion in Part 4.1 about which key acts as a character-delete key.
elawareand press the insert key again to end the insertion. Notice that the "INSERT CMR" status message changes back to "CMR." Finally, remove the trailing "E" by pressing the character-delete key. The net effect is to change "DE" to "Delaware".
GA South 6478(Hint: Press CTRL-A to move quickly to the next line's prefix area.)
ID<TAB>MT<TAB><TAB>296
DC South 607If the line you are looking for is not on the screen, you can view the page before (or after) by:
KY South 3685Then move the cursor to the prefix area of the line
MS South 2573and type "f" (for "following") anywhere in the prefix area. Press the ENTER or RETURN key to move the first line you marked to a line following the second line. If you had typed "p" rather than "f", the first line would have "preceded" rather than "followed" the second line.
KY South 3685Then move the cursor to the prefix area of the line
TN South 4877and type "f" (for "following") anywhere in the prefix area. Press the ENTER or RETURN key to copy the first line you marked to a line just after the second line.
You also can mark the first and last line of the group of lines you want to affect by typing two of the appropriate prefix codes. For example, to delete lines 11 to 15, type "dd" in the prefix areas of lines 11 and 15. The prefix (and text) areas will look like this:
dd 11 <text of line 11> 12 <text of line 12> 13 <text of line 13> 14 <text of line 14> dd 15 <text of line 15>The lines will be deleted when you press the ENTER or RETURN key.
locate /thing/ | moves the current line down to the next line containing "thing". The word "locate" is optional. | ||
locate -/thing/ | moves the current line up to the previous line containing "thing". The word "locate" is optional. | ||
change /old/new/ | changes the first occurrence of the word "old" to the word "new" on the current line. The command "change" may be abbreviated as "ch". | ||
change /old/new/ 1 * | changes all occurrences (*) of the word "old" to the word "new" on the current line (1). | ||
change /old/new/ * * | changes all occurrences (*) of the word "old" to the word "new" from the current line to the end of the file (*). |
case mixed ignore
topand pressing the ENTER or RETURN key. Scanning from the current line, find the first line in the file with the characters "NE" by typing
locate /NE/and pressing the ENTER or RETURN key. Then move the current line down 2 lines by typing
down 2and pressing the ENTER or RETURN key.
Change all occurrences of "NE" to Northeast" from that point on by typing
change /NE/Northeast/ * *and pressing the ENTER or RETURN key. Notice the message line at the top of the screen.
fileon the command line and press the ENTER or RETURN key. Remember, to quit without saving the changes, type
qquitinstead and press the ENTER or RETURN key.