I'm using the Mac version, and couldn't find a native UE command to remove all empty lines in a file. Does this exists or do I have to use a regular expression?
This is a frequently asked question which is answered on the FAQ page. There are the two questions:
If the deletion of empty and/or blank lines must be done frequently, it is advisable to create a macro for this regular expression replace all from top of the file with a hotkey/chord assigned to the macro and stored (together with other macros) in a macro file which is configured to be automatically loaded at startup of UltraEdit. Then the empty/blank line deletions can be done always quickly by pressing the hotkey/chord of the macro. It is also possible to create an UltraEdit script with the commands for deletion of all empty/blank lines in a file from the top and add this script to the scripts list with a hotkey/chord assigned to the script for fast execution by key.
PS: I am using only UltraEdit for Windows which has the commands Delete all empty lines and Delete all empty and whitespace-only lines since v24.20.0.44 released 2017-10-11. The two commands are just built-in Perl regular expression replaces as far as I know. I don't know if UltraEdit for Mac has the two commands too. Look into all menus. If the commands cannot be found in any menu of UltraEdit for Mac, then the two regular expression replaces are not yet available in UE for Mac.
- How can I delete blank lines in UltraEdit?
- How can I delete blank lines with blank tabs/spaces in UltraEdit?
If the deletion of empty and/or blank lines must be done frequently, it is advisable to create a macro for this regular expression replace all from top of the file with a hotkey/chord assigned to the macro and stored (together with other macros) in a macro file which is configured to be automatically loaded at startup of UltraEdit. Then the empty/blank line deletions can be done always quickly by pressing the hotkey/chord of the macro. It is also possible to create an UltraEdit script with the commands for deletion of all empty/blank lines in a file from the top and add this script to the scripts list with a hotkey/chord assigned to the script for fast execution by key.
PS: I am using only UltraEdit for Windows which has the commands Delete all empty lines and Delete all empty and whitespace-only lines since v24.20.0.44 released 2017-10-11. The two commands are just built-in Perl regular expression replaces as far as I know. I don't know if UltraEdit for Mac has the two commands too. Look into all menus. If the commands cannot be found in any menu of UltraEdit for Mac, then the two regular expression replaces are not yet available in UE for Mac.
Best regards from an UC/UE/UES for Windows user from Austria