2-5
Starting and Ending an Editing Session
To Access a Specific File at a Specific Location
Enter the following:
e File LineNumber ColumnNumber
where File is the name of a file you want to edit, LineNumber is the line number you want to
be the current line, and ColumnNumber is the column where you want the cursor.
The file is displayed with the cursor located where specified.
For example, to go to line 55 of the NYexpenses file, enter:
e NYexpenses 55
To go to the same line of the same file but start in column 25, enter:
e NYexpenses 55 25
To Access a Specific File at a Pattern after a Specific Location
Enter the following:
e File LineNumber ColumnNumber Pattern
where File is the name of a file you want to edit, LineNumber is the line number where you
want to start searching, ColumnNumber is the column where you want to start searching,
and Pattern is a character string or regular expression representing the text for which you
want to search.
The file is displayed with the cursor located where Pattern is located.
For example, to go to the NYexpenses file, search from the first character of the file, and
begin editing at the first occurrence of the string dinner, enter:
e NYexpenses 0 0 dinner
How to End an Editing Session with the INed Editor
To Save File Changes, Store Updated Files, and Exit
Press the Ctrl–A, D key sequence (the Exit function).
Usually when you create or revise files, you want to store the latest versions.
The editor stores the files and returns to the system prompt.
After the files are stored, the editing session ends, and the previous screen is displayed. (If
you entered the editor from the system prompt, the system prompt is displayed.)
The next time you use the files, you will see the updated versions, exactly as you stored
them.
If no changes were made to the files, the files are not stored.
Note: To save space when storing a text file, the editor may replace multiple blanks at the
beginning of lines with tab characters. Some programs cannot process files that
contain tab characters. Before you use these programs with INed editor text files,
you should run the untab command.
To Ignore Editing Changes, Restore Original Files, and Exit
Sometimes when you create or revise a file, you may want to start over and not store
anything you just typed.
• Press the Ctrl–A, Enter key sequence (the Enter function).
Attention:When you use this command, the editor does not save any of the changes
made to text files during this editing session. However, any changes already saved with
the Ctrl–A, S key sequence (the Save function) are retained.
• Type q in the Enter box.