I am getting countless
warning: no newline at end of file
From some code that was last edited in Windows.
In Linux, how can I fix all these cpp/h files and add a new line to the end of every file that does not have a new line?
I've been trying to use sed:
find . \( -name "*.cpp" -o -name "*.h" -o -name "*.hpp" \) -print | xargs sed -i -e "$G"
But I haven't gotten it working yet.