26.9 Valid Metacharacters for Different UNIX ProgramsSome regular expression metacharacters are valid for one program but not for another. Those that are available to a particular UNIX program are marked by a bullet () in Table 26.4 . Quick reference descriptions of each of the characters can be found in article 26.10 .
[Unfortunately, even this table doesn't give the whole story.
For example, Sun has taken some of the extensions
originally developed for
ed
,
ex
, and
vi
(such as the
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 in Table 26.4 are meaningful only in a search pattern. ed , ex , and sed support the additional metacharacters in Table 26.5 that are valid only in a replacement pattern.
- | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|