User`s guide
354 XgOS User’s Guide • September 2014
SEDIT Script Editor
The Script Editor (SEDIT) is a simple but powerful onboard text editor that runs
from within the CLI.
Syntax
You can use the following ways to start SEDIT and open a file:
Example: Redirect CLI Output to a File and
Editing the File
This example redirects (>) the output of show system to a file named “foo”, then
uses file edit <filename> to start the editor and open the file:
Command summary:
if (movetodir) {
var destname = dest + "/" + Filename.filename (file)
System.rename (file, destname)
} else {
System.rename (file, dest)
}
}
sedit <filename>
file edit <filename>
vi <filename>
show system > foo
sedit foo
^w write file (save)
^d quit editor
^f find regular expression
^g find next
^p for help
...