GNU Rush legacy configuration syntax (split by node):   Section:   Chapter:FastBack: Rule   Up: Transformations   FastForward: Include   Contents: Table of ContentsIndex: Concept Index

3.2.2 Delete

The ‘delete’ action deletes the given word, or range of words, from the command line. It has two forms.

Rule Config: delete[n]

Delete nth word. See indexing, for a detailed description of n and its syntax. However, see the note below.

Rule Config: delete n m

Delete words from n to m, inclusive. For example, the following action removes all arguments, except the command name:

delete 1 $

Neither form can be used to delete the command name, i.e. ‘[0]’ or ‘[^]’.