At 12:44, Paulo Cesar Martins <[email protected]> wrote:
> May someone help me?

You can use the “a” command:

sed '/clientenike/a\
nikevoce.com.br
' /etc/squid/liberados

The newline before the closing quote doesn’t seem to be required by
POSIX, but OpenBSD sed(1) won’t do what you want without it [0].

Note that the syntax sed -i <program> <file> to edit <file> in place
without a backup will work on OpenBSD and GNU sed(1), but needs to be
tweaked for FreeBSD and some versions of macOS [1][2], in case you
ever need to do the same thing on those platforms.

[0] https://unix.stackexchange.com/q/390845
[1] https://unix.stackexchange.com/a/131940
[2] https://stackoverflow.com/a/4247319

Reply via email to