Tokenize » History » Version 3
Per Amundsen, 02/16/2023 03:24 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | */tokenize <C> <text>* |
||
4 | |||
5 | Fills the $1 $2 ... $N identifiers with tokens in <text> separated by character <c>. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | 3 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | <C> | The "ASCII":http://www.asciitable.com/ value to separate by. | |
||
12 | | <text> | The text to separate. | |
||
13 | 1 | Per Amundsen | |
14 | *Example* |
||
15 | |||
16 | <pre> |
||
17 | 2 | Per Amundsen | ; Separate the text "one:two:three" by ASCII value 58 (:) |
18 | 1 | Per Amundsen | //tokenize 58 one:two:three | echo -a Result of $!2: $2 |
19 | </pre> |