Added in 1.9.1

$token(text,N,C)

Returns the Nth token in text.

Same as $gettok.

Parameters

text - The text to tokenize.
N - The Nth token to get.
C - The ASCII value to tokenize by.

Example

; Print the 3rd token in 'a.b.c.d.e'
//echo -ag $token(a.b.c.d.e,3,46)