From unknown Mon Jun 16 23:49:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66907 <66907@debbugs.gnu.org> To: bug#66907 <66907@debbugs.gnu.org> Subject: Status: 3.2 sed commands summary missing commands Reply-To: bug#66907 <66907@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:49:23 +0000 retitle 66907 3.2 sed commands summary missing commands reassign 66907 sed submitter 66907 lostbits severity 66907 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 02 23:09:48 2023 Received: (at submit) by debbugs.gnu.org; 3 Nov 2023 03:09:48 +0000 Received: from localhost ([127.0.0.1]:56554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qykZ7-0003Cx-2U for submit@debbugs.gnu.org; Thu, 02 Nov 2023 23:09:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qydkL-0008De-0V for submit@debbugs.gnu.org; Thu, 02 Nov 2023 15:52:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qydje-00010x-3e for bug-sed@gnu.org; Thu, 02 Nov 2023 15:52:10 -0400 Received: from omta038.useast.a.cloudfilter.net ([44.202.169.37]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qydja-0008Sn-TY for bug-sed@gnu.org; Thu, 02 Nov 2023 15:52:08 -0400 Received: from eig-obgw-5009a.ext.cloudfilter.net ([10.0.29.176]) by cmsmtp with ESMTPS id ycrSqQQqxWcCIydjYq8HLK; Thu, 02 Nov 2023 19:52:04 +0000 Received: from box5707.bluehost.com ([162.241.252.110]) by cmsmtp with ESMTPS id ydjWqTE6uI9guydjXqv6Di; Thu, 02 Nov 2023 19:52:03 +0000 X-Authority-Analysis: v=2.4 cv=Ds1FRUz+ c=1 sm=1 tr=0 ts=6543fde3 a=qUfFRToiTI0hwv9vP0yqsA==:117 a=qUfFRToiTI0hwv9vP0yqsA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=BNY50KLci1gA:10 a=Eti_hOKDm4gA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=L4CXfFERZEs1R_vOHWkA:9 a=QEXdDO2ut3YA:10 a=oOOTvH6z3FyDmMGxriQA:9 a=OJ-FIbgrOdfYYaFl:21 a=_W_S_7VecoQA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=slipbits.com; s=default; h=Subject:From:To:MIME-Version:Date:Message-ID: Content-Type:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1ILcxRj1v0XxXFFnnui7SlezeixpivJ8eRrHkVBsBkY=; b=iTd8MXRji0kQW01eo0xzlMHc2O qlPbUTK3Zh5+BlVgCnMHhP0XtQrvpmJiAgovRF+hV9+Y7QYi8LOFATBAMAT4GyNzRzLpD1JicNQI9 lCOO35UiNKuJD2YUIZphX3JhcAVTj1Qo4vZyIqcNGDlZqmJr9RrKdrdlRWP50+4mjF+Ac5Zclb4Rc XgALKllH8Vi7jQVvUIAUS7wKiiJzf1LMZ8xRi/9wKgzVQ/amRhNZdLsaU8ABl6JV2NzUTXNhW0z3q Br6Sp1DfSIG5JpjS2vHd9BxTZK5E/nxJ+cuY6s47hIorYxlUM0kIOEQqBcJzbfEzsZ9fTZ2EkAJvc XDeVSnrw==; Received: from wsip-72-203-216-141.oc.oc.cox.net ([72.203.216.141]:61410 helo=[172.16.226.252]) by box5707.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1qydjW-001DLW-1q for bug-sed@gnu.org; Thu, 02 Nov 2023 13:52:02 -0600 Content-Type: multipart/alternative; boundary="------------eFFoutk0iUtAmQMD7hOEKYzG" Message-ID: <7adfb3e2-68fd-45ce-9d7d-ca26f3d563e6@slipbits.com> Date: Thu, 2 Nov 2023 12:52:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: bug-sed@gnu.org Content-Language: en-US From: lostbits Subject: 3.2 sed commands summary missing commands X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5707.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - slipbits.com X-BWhitelist: no X-Source-IP: 72.203.216.141 X-Source-L: No X-Exim-ID: 1qydjW-001DLW-1q X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: wsip-72-203-216-141.oc.oc.cox.net ([172.16.226.252]) [72.203.216.141]:61410 X-Source-Auth: home@slipbits.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: c2xpcGJpdHM7c2xpcGJpdHM7Ym94NTcwNy5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfLLULzKiW+vy6xHx7PST4QJUN4io0HhKS/Lk+0nEYCcZI1dH7EAnhiK0EkX1JlgF/KXVTuo7Dp1mFbL761JjsrsglC41OQ4tafEM0CyRzA9Ue6e6jo9n fPV5t8C0OdtO5LZkVG5k6i+h5yEcwvQ9WX9MLXty6HlfBl4C0VwoaP14XYi2KwGIja8ohos3u3u791yfi5EswPW6lSbbiuaIXy4= Received-SPF: pass client-ip=44.202.169.37; envelope-from=forum@slipbits.com; helo=omta038.useast.a.cloudfilter.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 02 Nov 2023 23:09:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This is a multi-part message in MIME format. --------------eFFoutk0iUtAmQMD7hOEKYzG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Missing two entries. The descriptions are for my personal notes. I have no opinion whether they should be included. 3.2 |sed| commands summary $           Last line of last input file. a\          Append text after a line. text a text      Append text after a line. b label     Branch to label.    missing  c           Comment, newline delimited. c\          Change lines with text. text c text      Change lines with text. d           Delete pattern space and start next cycle. D           If pattern space contains newlines, delete text up to the             first newline, and restart cycle with the resultant pattern             space, without reading a new line of input. e           Executes the command that is found in pattern space in the             shell, and replaces the pattern space with the output; a             trailing newline is suppressed. e command   Executes command in the shell, and sends its output to the             output stream. F           Print the file name of the current input file g           Replace the contents of the pattern space with the contents             of the hold space. G           Append a newline to the contents of the pattern space, and             then append the contents of the hold space to that of the             pattern space. h           Replace the contents of the hold space with the contents of             the pattern space. H           Append a newline to the contents of the hold space, and then             append the contents of the pattern space to that of the hold             space. i\          Insert text before a line. text i text      Insert text before a line.    missing l [num]     Print the pattern space in an unambiguous form and wrap after             num columns. n           If auto-print is not disabled, print the pattern space, then             replace the pattern space with the next line of input. N           appends the next line from the input file to the pattern space. p           If auto-print is not disabled, print the pattern space, then,             regardless, replace the pattern space with the next line of             input. If there is no more input then sed exits without             processing any more commands. P           Print the pattern space, up to the first . q[num]      Print pattern-space and exit with optional exit code, num. Q[num]      Do not print pattern-space and exit with optional exit code, num. r filename  Reads file filename. R filename  Queue a line of filename to be read and inserted into the output             stream at the end of the current cycle, or when the next input             line is read. s///[flags] Match the regular-expression against the content of the pattern             space and replace with replacement. t [label]   Branch to label if there has been a successful substitution or             conditional branch. If no label  the next cycle is started. T [label]   Branch to label if there has been no successful substitution or             conditional branch. If no label  the next cycle is started. v [version] Fail if GNU sed extensions are not supported, or if the requested             version is not available. w filename  Write the pattern space to filename. W filename  Write to the given filename the portion of the pattern space up             to the first newline. x           Exchange the contents of the hold and pattern spaces. y/src/dst/  Change characters in the pattern space which match any characters             in src with the corresponding character in dst. z           Delete characters in the pattern space. #           Comment { cmd; cmd ... }  Command grouping =           Print the current input line number. : lavel     Label --------------eFFoutk0iUtAmQMD7hOEKYzG Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Missing two entries. The descriptions are for my personal notes. I have no opinion whether they should be included.


3.2 sed commands summary

$           Last line of last input file.
a\          Append text after a line.
text     
a text      Append text after a line.
b label     Branch to label.
   missing  c           Comment, newline delimited.
c\          Change lines with text.
text
c text      Change lines with text.
d           Delete pattern space and start next cycle.
D           If pattern space contains newlines, delete text up to the
            first newline, and restart cycle with the resultant pattern
            space, without reading a new line of input.
e           Executes the command that is found in pattern space in the
            shell, and replaces the pattern space with the output; a
            trailing newline is suppressed.
e command   Executes command in the shell, and sends its output to the
            output stream.
F           Print the file name of the current input file
g           Replace the contents of the pattern space with the contents
            of the hold space.
G           Append a newline to the contents of the pattern space, and
            then append the contents of the hold space to that of the
            pattern space.
h           Replace the contents of the hold space with the contents of
            the pattern space.
H           Append a newline to the contents of the hold space, and then
            append the contents of the pattern space to that of the hold
            space.
i\          Insert text before a line.
text
i text      Insert text before a line.
   missing l [num]     Print the pattern space in an unambiguous form and wrap after
            num columns.
n           If auto-print is not disabled, print the pattern space, then
            replace the pattern space with the next line of input.
N           appends the next line from the input file to the pattern space.
p           If auto-print is not disabled, print the pattern space, then,
            regardless, replace the pattern space with the next line of
            input. If there is no more input then sed exits without
            processing any more commands.
P           Print the pattern space, up to the first <newline>.
q[num]      Print pattern-space and exit with optional exit code, num.
Q[num]      Do not print pattern-space and exit with optional exit code, num.
r filename  Reads file filename.
R filename  Queue a line of filename to be read and inserted into the output
            stream at the end of the current cycle, or when the next input
            line is read.
s///[flags] Match the regular-expression against the content of the pattern
            space and replace with replacement.
t [label]   Branch to label if there has been a successful substitution or
            conditional branch. If no label  the next cycle is started.
T [label]   Branch to label if there has been no successful substitution or
            conditional branch. If no label  the next cycle is started.
v [version] Fail if GNU sed extensions are not supported, or if the requested
            version is not available.
w filename  Write the pattern space to filename.
W filename  Write to the given filename the portion of the pattern space up
            to the first newline.
x           Exchange the contents of the hold and pattern spaces.
y/src/dst/  Change characters in the pattern space which match any characters
            in src with the corresponding character in dst.
z           Delete characters in the pattern space.
#           Comment
{ cmd; cmd ... }  Command grouping
=           Print the current input line number.
: lavel     Label

--------------eFFoutk0iUtAmQMD7hOEKYzG--