next previous up contents index
Next: TEST Previous: SORT Up: The Commands in Detail


SSPLIT   [col1 [col2]] [/string/ [E]]
SS

With the command SSPLIT (= `string split') you can divide the record of the current line in two records. The easiest application is the specification of a character string where the record is split. In such a case, the line is always split at the beginning of the character string specified. For example, if the current line has the following content

the command

makes the following two lines out of the initial one:

If you want to split the line above at the second `the' in the text, you can enter

which means, you restrict the area where the character string is searched.

only searches the columns col1 to col2 for the characters to split at.

searches the columns starting at col1 for the characters.

If you enter an E after the character string, the dividing of the line does not happen at the beginning of the character string but at the end of the string.

results in the two lines

You do not necessarily need to specify a character string to split at. You may also specify a column to divide a record:

provides the result

The latter method is also useful to create an empty line before or after the current line:

results in an empty record before the current line.

with a column n specified generates an empty line after the current line. The column n must be situated beyond the last character that is no space. For the example above, you may enter

The parameter

( = `hexadecimal') allows you to enter the character string in hexadecimal form. Since 1 byte is always defined by 2 hexadecimal characters, exaEdit always demands that the amount of the entered hexadecimal characters is even. Otherwise exaEdit will generate the error message Entering a character that is not hexadecimal results in the error message If, for example, you would want to split a record at a tab sign (in hexadecimal form 09) that occurs somewhere in the record, you would enter

When the parameter

( = `case-insensitive') is given, the search for the character string, where the record is to be split, will be case insensitive (i.e. no distinction between lower and upper case characters). This means that will split the record after either ab or Ab or aB or AB.

If you have to use the parameter I regularly, the use of the command CASE is recommended. CASE can force other commands to act as if the parameter I was given. For further information see CASE.


next previous up contents index
Next: TEST Previous: SORT Up: The Commands in Detail