![]() 9.2. Metacharacters, Listed by Linux ProgramSome
metacharacters are valid for one
program but not for another. Those available to a given program are
marked by a checkmark
(
On some Linux systems, grep is a link to egrep, so whenever you run grep you actually get egrep behavior. In ed, vi, and sed, when you perform a search-and-replace (substitute) operation, the metacharacters in this table apply to the pattern you are searching for but not to the string replacing it. In gawk, { } is specified in the POSIX standard and is supported by gawk if you run it with the -Wre-interval option. In ed, vi, and sed, the following additional metacharacters are valid only in a replacement pattern:
![]() Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|