$puttok » History » Version 1
  Per Amundsen, 08/10/2015 05:50 AM 
  
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ | 
|---|---|---|---|
| 2 | |||
| 3 | *$puttok(text,token,N,C)* | ||
| 4 | |||
| 5 | Overwrites the Nth token in text with a new token. | ||
| 6 | |||
| 7 | *Parameters* | ||
| 8 | |||
| 9 | text - The text to tokenize. | ||
| 10 | token - Token to put. | ||
| 11 | N - The Nth token to replace. | ||
| 12 | C - The "ASCII":http://www.asciitable.com/ value to tokenize by. | ||
| 13 | |||
| 14 | *Example* | ||
| 15 | |||
| 16 | <pre> | ||
| 17 | ; Replace the second token with 'e' | ||
| 18 | //echo -ag $puttok(a.b.c.d,e,2,46) | ||
| 19 | </pre> |