$deltok

From Scriptwiki
Revision as of 17:23, 16 October 2005 by Doomie (talk | contribs)

Jump to: navigation, search

Deletes the Nth token from text.

$deltok(text,N-N2,C)

Note that you can specify a negative value for N.

Example

echo -ag $deltok(This is a moo test,4,32)

This example will echo This is a test, as moo is removed from the text.

echo -ag $deltok(This is a test for you,-2-1,32)

This example will also echo This is a test, as the last two words are removed from the text.