AWK printing front of the line rather than end of the line

29 Views Asked by At

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

0

There are 0 best solutions below