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
and the dog watched the cat
the command
ssplit -the-
makes the following two lines out of the initial one:
and
the dog watched the cat
If you want to split the line above at the second `the' in the text, you can enter
ssplit 21 -the-
which means, you restrict the area where the character string is searched.
ssplit col1 col2 ...
only searches the columns col1 to col2 for the characters to split at.
ssplit col1 ...
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.
ss-the-e
results in the two lines
and the
dog watched the cat
You do not necessarily need to specify a character string to split at. You may also specify a column to divide a record:
ss 5
provides the result
and t
he dog watched the cat
The latter method is also useful to create an empty line before or after the current line:
ss1
or ss
results in an empty record before the current line.
ss n
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
ss33
The parameter
H
Odd number of hex characters
Wrong hex character
ssplit /09/ h
When the parameter
I
ssplit /ab/ i
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.