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


uex [-h] [-v] [-r] [-p] [-o] [-n] [-d] [-i ] [-c ] [-m ] [-s ] [-f ] [file to open...]


Short  Long  Description
-h--helpshow this help message
-v--versionshow version
-r--read-only open files in read-only mode
-p--printprint file
-c--config=<str>   configuration file to use
-s--script=<str>script to run: [e,]< script name >
-m--macro=<str>macro to run:
[e,][<# times to execute>,][<macro name>,]<full path to macro file>

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


fileN is filename [--lcLINE:COLUMN]

If you would like to open "/etc/hosts" in read-only mode, at line 10, column 7, you would use the following command:

uex -r -- /etc/hosts --lc10:7

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

With our example, you can open the "/etc/hosts" file in read-only mode with the following command:

uex -r -- /etc/hosts