This is simple script to find all file that not exist (\n) at the end of file and append (\r\n) to that file
#Usage: append_newline.py .h /home/mysource /home/result_dir
This will find all file *.h in /home/mysource doesn't container (\n) auto append new line (\r\n) and write to destination /home/result_dir