User Tools

Site Tools


cdc6500_survival_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cdc6500_survival_guide [2019/09/23 01:08]
papa old revision restored (2019/09/11 04:22)
cdc6500_survival_guide [2019/09/26 15:47]
tfurrows Added an EDIT session example
Line 254: Line 254:
 Although the programming subsystems include basic functionality for entering and modifying program source code in the primary file, the NOS Text Editor program (''EDIT'') provides both advanced editing functions and the ability to edit other local files besides the primary file. Although the programming subsystems include basic functionality for entering and modifying program source code in the primary file, the NOS Text Editor program (''EDIT'') provides both advanced editing functions and the ability to edit other local files besides the primary file.
  
-| ''EDIT\\ +| ''EDIT''\\ ''EDIT'',//file//\\ ''EDIT'',//file//,//mode// | Edit the primary file with Text Editor. The second form is for editing other local files. The third form is for specifying a file mode; ''N''=normal, ''AS''=ASCII.|
-EDIT,''//file// | Edit the primary file with Text Editor. The second form is for editing other local files. |+
 | ''RESET''                 | Reset current line pointer to first line. | | ''RESET''                 | Reset current line pointer to first line. |
 | ''SET'';                | Set the current-line pointer by moving it +/- "n" lines relative to the current position. | | ''SET'';                | Set the current-line pointer by moving it +/- "n" lines relative to the current position. |
Line 266: Line 265:
 | ''RS:''/abc/,/xyz/;     | Replace string "abc" with "xyz" in the current line "n" times| | ''RS:''/abc/,/xyz/;     | Replace string "abc" with "xyz" in the current line "n" times|
 | ''END'' | Exit Text Editor | | ''END'' | Exit Text Editor |
 +
 +Here is an example session using the ''EDIT'' command to create and edit a simple ASCII text file. 
 +
 +<code>
 +/EDIT,test,AS  
 + BEGIN TEXT EDITING.
 +? add
 + ENTER TEXT.
 +? /This is a test file.
 +? It has multiple lines of text.
 +? This file demonstrates the edit command.
 +? This is line 4./
 + READY.
 +? list;*
 +This is a test file.
 +It has multiple lines of text.
 +This file demonstrates the edit command.
 +This is line 4.
 + -END OF FILE-
 +? add
 + ENTER TEXT.
 +? /Pointer at line 1, we insert a new line 2./
 + READY.
 +? list;*
 +This is a test file.
 +Pointer at line 1, we insert a new line 2.
 +It has multiple lines of text.
 +This file demonstrates the edit command.
 +This is line 4.
 + -END OF FILE-
 +? set;4
 +? list
 +This is line 4.
 +? delete
 + -END OF FILE-
 +? add
 + ENTER TEXT.
 +? /This is line 5./
 + READY.
 +? reset
 +? list;*
 +This is a test file.
 +Pointer at line 1, we insert a new line 2.
 +It has multiple lines of text.
 +This file demonstrates the edit command.
 +This is line 5.
 + -END OF FILE-
 +? end
 + END TEXT EDITING.
 +$EDIT,TEST,AS.
 +/SAVE,test
 +</code>
  
 ===== Batch ===== ===== Batch =====
cdc6500_survival_guide.txt · Last modified: 2020/08/12 06:12 by hc9