>>652
sed -i -e '$a\' file
http://unix.stackexchange.com/questions/31947/how-to-add-a-newline-to-the-end-of-a-file