Difference between revisions of "ED"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Execute a text editor to edit program files
+
Open the Script Editor to edit program or other text files
 
+
  
 
==Syntax==
 
==Syntax==
ED <prg filename> | (<expC>)
+
ED <filename> | (<expC>)
 
+
  
 
==See Also==
 
==See Also==
[[MODIFY COMMAND]], [[SET TEDIT]], [[TEXTEDIT()]], [[VI]]
+
[[MC]], [[MODIFY COMMAND]], [[MODIFY FILE]], [[VI]]
 
+
  
 
==Description==
 
==Description==
ED provides the facility to create or modify program files and other text files.  The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename.  If no file extension is present in the file name, then '.prg' is used.
+
ED opens the Script Editor to create or modify program files and other text files.  The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename.  If no file extension is present in the file name, then '.prg' is used.
 
+
The default editors are: the 'vi' editor under UNIX and Linux; the 'edt' editor under VAX/VMS.  You may override these defaults using the SET TEDIT command.
+
 
+
ED is a synonym of the MODIFY COMMAND and VI commands.
+
  
 +
ED is a synonym of the MC, MODIFY COMMAND, MODIFY FILE and VI commands.
  
 
==Example==
 
==Example==
Line 23: Line 17:
 
modify command myprogram
 
modify command myprogram
 
ed myprogram
 
ed myprogram
 +
mc myprogram
 +
modify file myprogram
 
vi myprogram
 
vi myprogram
 
</code>
 
</code>
  
 
==Products==
 
Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Terminal Development Tools]]
 
[[Category:Terminal Development Tools Commands]]
 

Latest revision as of 11:47, 21 November 2012

Purpose

Open the Script Editor to edit program or other text files

Syntax

ED <filename> | (<expC>)

See Also

MC, MODIFY COMMAND, MODIFY FILE, VI

Description

ED opens the Script Editor to create or modify program files and other text files. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is present in the file name, then '.prg' is used.

ED is a synonym of the MC, MODIFY COMMAND, MODIFY FILE and VI commands.

Example

modify command myprogram
ed myprogram
mc myprogram
modify file myprogram
vi myprogram