Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ralf Damaschke Newsgroups: comp.unix.shell Subject: Re: a sed question Date: 20 Dec 2024 00:55:04 GMT Organization: C.H.A.O.S. Lines: 34 Message-ID: References: <874j304vv3.fsf@example.com> <87wmfv27yy.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net CMn/pOBW1dKLAq6x2ur5Egu3v1hUvwSM/Ko1Qe/BNe2JQ70FA1 Cancel-Lock: sha1:J4rHW7zxtmuklePDixHd5RiKAVE= sha256:zMmy0UiylkStYeS0ZirXgN6k75ssCgZcbk6zQ6QjMn0= User-Agent: Pan/0.155 (Kherson; fc5a80b8) Bytes: 2060 Salvador Mirzo wrote: > Ralf Damaschke writes: >> The specification in https://pubs.opengroup.org/onlinepubs/9799919799/ > > That's the home page. I believe you meant to link the sed page > directly. When copying URLs from the specification, we need to copy the > framed URL, otherwise we always end up at the home page. The framed sed > page is at > > https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sed.html Actually I considered that. But I felt that the top page might be of more value since it is easy to find "Shell & Utilities" and "Utilities" in the frames at the left, whereas the HOME link at the subframe leads to a very detailed table of content where I would have to use the browser's find command to locate the specs of other commands. > I tried to change a line and then append another. In both > FreeBSD's and GNU's sed, I the append takes place (and I thought they > would not if they were to obey the specification). > $ sed '/^x/{c\ > hello a\ > hi }' x.txt a line hello hi more lines more lines $ > $ sed '/^x/{c\ > hello > a\ > hi > }' x.txt For GNU sed that might be a version issue. On my system with sed version "sed (GNU sed) 4.9" the copied&pasted command only prints "hello" for "x" and ignores the append command.