Project

General

Profile

Tokenize » History » Version 2

Per Amundsen, 08/09/2015 05:44 AM

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 2 Per Amundsen
&lt;C&gt; - The "ASCII":http://www.asciitable.com/ value to separate by.
10 1 Per Amundsen
&lt;text&gt; - The text to separate.
11
12
*Example*
13
14
<pre>
15 2 Per Amundsen
; Separate the text "one:two:three" by ASCII value 58 (:)
16 1 Per Amundsen
//tokenize 58 one:two:three | echo -a Result of $!2: $2
17
</pre>