DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(history.info.gz) Modifiers

Info Catalog (history.info.gz) Word Designators (history.info.gz) History Interaction
 
 1.1.3 Modifiers
 ---------------
 
 After the optional word designator, you can add a sequence of one or
 more of the following modifiers, each preceded by a `:'.
 
 `h'
      Remove a trailing pathname component, leaving only the head.
 
 `t'
      Remove all leading  pathname  components, leaving the tail.
 
 `r'
      Remove a trailing suffix of the form `.SUFFIX', leaving the
      basename.
 
 `e'
      Remove all but the trailing suffix.
 
 `p'
      Print the new command but do not execute it.
 
 `s/OLD/NEW/'
      Substitute NEW for the first occurrence of OLD in the event line.
      Any delimiter may be used in place of `/'.  The delimiter may be
      quoted in OLD and NEW with a single backslash.  If `&' appears in
      NEW, it is replaced by OLD.  A single backslash will quote the
      `&'.  The final delimiter is optional if it is the last character
      on the input line.
 
 `&'
      Repeat the previous substitution.
 
 `g'
 `a'
      Cause changes to be applied over the entire event line.  Used in
      conjunction with `s', as in `gs/OLD/NEW/', or with `&'.
 
 `G'
      Apply the following `s' modifier once to each word in the event.
 
 
Info Catalog (history.info.gz) Word Designators (history.info.gz) History Interaction
automatically generated byinfo2html