diff options
author | Jim Meyering <meyering@fb.com> | 2018-02-15 11:56:27 +1300 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2018-02-15 17:41:20 -0700 |
commit | 41e506e12b363628af29b089f55585b17e1389e6 (patch) | |
tree | 159cad7e490a7e020c33edbe51f55b226499f279 /doc | |
parent | cb6cb45fede374a12dfdb3a509fc54ea04f900ba (diff) | |
download | sed-41e506e12b363628af29b089f55585b17e1389e6.tar.gz |
doc: small improvements
* doc/sed.texi: s/only accepts/accepts only/.
(BRE vs ERE): Tweak ERE and BRE definitions, and convert a
passive-voice sentence to active voice. Insert a comma.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/sed.texi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/sed.texi b/doc/sed.texi index f996c0f..a49d76c 100644 --- a/doc/sed.texi +++ b/doc/sed.texi @@ -1025,7 +1025,7 @@ $ seq 3 | sed 2q 2 @end example -This command only accepts a single address. +This command accepts only one address. Note that the current pattern space is printed if auto-print is not disabled with the @option{-n} options. The ability to return an exit code from the @command{sed} script is a @value{SSED} extension. @@ -1648,7 +1648,7 @@ Print out the file name of the current input file (with a trailing newline). @item Q [@var{exit-code}] -This command only accepts a single address. +This command accepts only one address. @findex Q (silent Quit) command @cindex @value{SSEDEXT}, quitting silently @@ -2499,12 +2499,12 @@ characters in regular expressions. @section Basic (BRE) and extended (ERE) regular expression Basic and extended regular expressions are two variations on the -syntax of the specified pattern. Basic Regular Expression (BRE) is the -default in @command{sed} (and similarly in @command{grep}). Extended -Regular Expression syntax (ERE) is activated by using the @option{-r} -or @option{-E} options (and similarly, @command{grep -E}). +syntax of the specified pattern. Basic Regular Expression (BRE) syntax is the +default in @command{sed} (and similarly in @command{grep}). +Use the POSIX-specified @option{-E} option (@option{-r}, +@option{--regexp-extended}) to enable Extended Regular Expression (ERE) syntax. -In @value{SSED} the only difference between basic and extended regular +In @value{SSED}, the only difference between basic and extended regular expressions is in the behavior of a few special characters: @samp{?}, @samp{+}, parentheses, braces (@samp{@{@}}), and @samp{|}. |