Tokenize » History » Version 1
Per Amundsen, 02/14/2014 08:05 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 | <C> - The ascii character to separate by. |
||
10 | <text> - The text to separate. |
||
11 | |||
12 | *Example* |
||
13 | |||
14 | <pre> |
||
15 | ;Separate the text "one:two:three" by ascii characters 58 (:) |
||
16 | //tokenize 58 one:two:three | echo -a Result of $!2: $2 |
||
17 | </pre> |