Hi,
My awk program is failing. I figured out using command
od -c filename
that the last line of the file doesnt end with a new line character.
Mine is an automated process because of this data is missing.
How do i handle this?
I want to append new line character at the end of last line in file if it is missing.
i tried doing this.
echo ,,,, >> file
thinking this will add a line the file.
Instead this is appending to the last field of the last line.
I want
where \n is new line character
Help is appreciated