Difference between revisions of "$deltok"

From Scriptwiki
Jump to: navigation, search
 
Line 10: Line 10:
 
This example will also echo ''This is a test'', as the last two words are removed from the text.
 
This example will also echo ''This is a test'', as the last two words are removed from the text.
  
[[Category:Token Identfiers]]
+
[[Category:Token Identifiers]]

Revision as of 17:23, 16 October 2005

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.