How to determine which sequence of bytes belong together? Does your input source contain a tab character between the strings to align or is really the space character the separating character?
There is the command Column - Convert to Fixed Column
which can be used to convert an entire CSV file to a fixed column text file. It would be possible to copy the lines to align into a new file and use this command if there are tabs in your text file.
But if really the space character is the separator, there is a problem. The first 5 lines contain 4 spaces while the last line has only 2 spaces.
To align the lines in your file an UltraEdit script would be necessary. The problem is that a program like an UltraEdit script can be coded only with clear rules what to do and how. A pattern recognition based on figure drawn from past experience as your brain uses to split up the characters into groups of strings can't be done with a program.
It would be possible to write an UltraEdit script which does in a loop from top to bottom of a file
- Search for an opening round bracket at beginning of a line.
- Select everything from start of next line up to end of the line above the line with a closing round bracket at start of the line.
- Load the selection as array of strings with using \r\n as criteria to split the selected string up into several strings (= list of lines).
- Split each each array element (=line) up into 4 strings using the first 2 spaces and the last comma as split criterias. It must be taken into account here that last line has no comma.
- Find out for all first, all second and all third strings of a line which one is the longest over all lines.
- Merge for every line the 4 strings again together with inserting spaces to get equal length for all first, second and third strings of all lines. Again a special handling is necessary for last line with no comma.
- Join the lines together to a single string using \r\n as connection link and overwrite the selection with this string.
A further information required for coding such a script would be: How many spaces do you want between first and second and between second and third string?
And is the format of the lines alwaysID TYPE ??? ,
or do other variants with more "columns", less or more spaces, etc. exist in the file?