Re: Doubt about sed command into OpenBSD / Dúvida sobre o comando sed no OpenBSD

2019-11-04 Thread Delan Azabani
At 12:44, Paulo Cesar Martins 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 th

Doubt about sed command into OpenBSD / Dúvida sobre o comando sed no OpenBSD

2019-11-04 Thread Paulo Cesar Martins
In English Good morning, I'm having some difficulties with the SED command in OpenBSD when trying to insert a new line of text into a file from a regular expression (regex) when found. I have tried to use all equivalent commands with Linux and GNU and have been unsuccessful. I'm using OpenBSD 6.