Append newline at the file end

Hi All,

Is there any way to append a newline character at the end of a file(coma-separated file), through shell script?

I need to check whether newline character exists at the end of a file, if it does not then append it.

Regards,
Krishna

No duplicate or cross-posting, please read the rules.

Continue here:

http://www.unix.com/shell-programming-scripting/69931-unix-shell-script-parse-contents-comma-separated-file.html\#post302207080

Thread closed.