Hi Trying to insert <br>
at the end of command output with awk but it is printing at the beginning
My command and expected output:
cat cmd.out |awk ' {printf $0"<br>\n" }'
Getting addresses from network interface table...<br> Getting addresses from sitelist...<br>
But actual output is:
<br>ing addresses from network interface table... <br>ing addresses from sitelist...
What am I doing wrong? Thanks
\n", $0` instead of `printf $0"
\n"` – Ed Morton May 30 '23 at 15:28