Some metacharacters are valid for one program but not for another. Those that are available to a UNIX program are marked by a bullet () in the table below. Full descriptions are provided after the table.
In ed, ex, and sed, note that you specify both a search pattern (on the left) and a replacement pattern (on the right). The metacharacters above are meaningful only in a search pattern.
In ed, ex, and sed, the following additional metacharacters are valid only in a replacement pattern: