IDM PowerTips
UltraEdit for Linux Command Line Support
Just like the Windows counterpart, UltraEdit may be invoked from the command line. For the power user and basic user alike, using UEx from the command line opens up many time-saving benefits and allows you to quickly perform your editing tasks.
The following examples demonstrate many of UEx’s supported command line operations.
Command line flags
Usage:
Commands
Short | Long | Description |
---|---|---|
-h | --help | show this help message |
-v | --version | show version |
-r | --read-only | open files in read-only mode |
-p | print file | |
-c | --config= | configuration file to use |
-s | --script= | script to run: [e,] |
-m | --macro= | macro to run: [e,][<# times to execute>,][ |
Open File
Open file at specified line/column
The general command line format when opening files with line/column specified is
uex [options/switches] — [files]
where [files] is file1 file2 file3… fileN
and
fileN is filename [–lcLINE:COLUMN]
Example:
If you would like to open “/etc/hosts” in read-only mode, at line 10, column 7, you would use the following command:
As you will see, this will open “/etc/hosts” as read-only at line 10 and column 7.
Please note: The standalone “–” is very important; without it the –lc option is not understood and will generate an error.
Open file (no specific line/column)
If you do not wish to open the file at a specific line and column, the — can be left out and the general command line format is simply:
uex [options/switches] file1 file2 file3… fileN
Example:
With our example, you can open the “/etc/hosts” file in read-only mode with the following command: