/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 "ctrl-O 1" input the first word of the most recent mud output, you could do this:

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

See: parameters, command substitution


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys