1          s    -- Substitute command
2
3               default range           syntax
4                   .,.           s/change-this/to-this[/][g]
5
6        The pattern "change-this" is matched on each line  within  the
7        range  and the string "to-this" is substituted for it.  If [g]
8        is used, all occurrences  of  the  "change-this"  pattern  are
9        changed.   If  "change-this" is empty, the most recent pattern
10        from this command (e.g.  within the range field) or a previous
11        command is used.  If "to-this" is a '%', the previous replace-
12        ment pattern is used. The "/" may be any character. The trail-
13        ing delimiter is optional.
14
15        To return to the command directory, type "hcomdir."
16        See also:  "hln" and "hpat".
17