Execute (x)

execute a file of editor commands

Syntax:

x [filename]

Description:

This command will open up a file and execute its contents as a series of editor commands. If a filename is not given the current file is used.

This command is commonly used to load macros via a file of translates. The editor does an Execute on the file /usr/lib/ed.macros immediately after execution begins. An execute file may not contain another execute.

The Execute command cannot be used inside a Global (g) or Until (u) command.

Current line:

The current line is set by the commands in the execute file.

Condition register:

The condition register is set by the commands in the execute file.