X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=sys%2Fman%2F1%2Fsed;h=e057b719294fba64cc0b105c3098126ae8c191ff;hb=e89e54d1a3bb47a6adf35082062303b0f8ccf1a5;hp=6bb2e6123ba7cde54f8eed75ea46704c5e5002de;hpb=b41b9034225ab3e49980d9de55c141011b6383b0;p=plan9front.git diff --git a/sys/man/1/sed b/sys/man/1/sed old mode 100755 new mode 100644 index 6bb2e6123..e057b7192 --- a/sys/man/1/sed +++ b/sys/man/1/sed @@ -255,6 +255,30 @@ Append the pattern space to if a replacement was made. .RE +.IP +An ampersand +.L & +appearing in the replacement +is replaced by the string matching the regular expression. +The characters +.BI \e n\f1, +where +.I n +is a digit, +are replaced by the text matched by the +.IR n -th +regular subexpression +enclosed between +.L ( +and +.LR ) . +When +nested parenthesized subexpressions +are present, +.I n +is determined by counting occurrences of +.L ( +starting from the left. .TP .BI t " label" Test.