/nth

Usage:

/FIRST text
/LAST text
/NTH n text


Echoes the first, last, or nth word from text. `/first text' is equivalent to `/nth 1 text'.

These commands can be useful in command substitutions. For example, to make `ESC 1' input the first word of the most recent mud output, you could do this:

/bind ^[1 = /input $(/first $(/recall 1))

See: parameters, command substitution


Back to index
Back to tf home page
Copyright © 1995 - 1999 Ken Keys