beautypg.com

How to move the cursor to specified line, How to search for a specified string, How to search for and print a string – Gasboy CFN III Manager Manual V3.6 User Manual

Page 193

background image

MDE-4871 CFN III Manager’s Manual for Windows® XP Embedded - Version 3.6 · August 2010

Page 18-9

Advanced Editing

Using Text Editors

How to Move the Cursor to Specified Line

You must be in edit or Command mode to use the goto command to move the cursor to a
specified line.

1

If you are not in edit mode, type ^E to get into edit mode.

2

Type g or G.
The cursor will move to the status line, which will display edit: goto:.

3

Type the number of the line you want to go to, and press Enter.

• The cursor will move to the line you specified.
• If you type a line number that is greater than the number of lines in your file, the cursor

moves to the last file line.

How to Search for a Specified String

Use the Command Mode FIND command to search for the next occurrence of a specified
string of characters. The cursor will move to the beginning of the next occurrence of the
specified string, and the editor will enter Insert Mode. If the string is not found, the editor
remains in command mode.

A question mark (?) in the search string is treated as a wild card. It will match any character
in that position.

A caret (^) as the first character of the string indicates the beginning of a line. A caret that is
not the first character is not treated specially. (Note that the ^ symbol does double duty. It
usually stands for holding down the CONTROL key when you press another key, or it can
stand for itself as the first character of a string).

FIND Command

To search for a specified string, proceed as follows:

1

If you are not in command mode, type ^C to enter command mode.

2

Type find. The command line will display the prompt Search mask.

3

Type the character or characters to search for.

• The cursor will move to the first character in the specified string and the editor will enter

insert mode.

• If the string is not found, the editor stays in command mode.

How to Search for and Print a String

Use the command-mode SEARCH command to print all lines containing a specified string.
To execute the search command, the editor must be in command mode.

1

If you are not in command mode, type ^C to enter command mode.

2

Type search. The command line will display the prompt Search mask?

3

Type the character or characters to search for.
FRED will print the line numbers and the lines that contain the specified string.

This manual is related to the following products: