$deltok » History » Version 1
Per Amundsen, 08/10/2015 05:12 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$deltok(text,N-N2,C)* |
||
4 | |||
5 | Deletes the Nth token from text. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | text - The text to tokenize. |
||
10 | N-N2 - The range of tokens or Nth token to delete. |
||
11 | C - The "ASCII":http://www.asciitable.com/ value to tokenize by. |
||
12 | |||
13 | *Example* |
||
14 | |||
15 | <pre> |
||
16 | ; Delete the 3rd token, result is 'a.b.d' |
||
17 | //echo -ag $deltok(a.b.c.d,3,46) |
||
18 | |||
19 | ; Delete the second to third token, result is 'a.d' |
||
20 | //echo -ag $deltok(a.b.c.d,2-3,46) |
||
21 | </pre> |