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
|-h||--help||show this help message|
|-r||--read-only||open files in read-only mode|
|-c||--config=||configuration file to use|
|-s||--script=||script to run: [e,]< script name >|
|-m||--macro=||macro to run:|
[e,][<# times to execute>,][
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:
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: