Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hoolymama/2238176 to your computer and use it in GitHub Desktop.
Save hoolymama/2238176 to your computer and use it in GitHub Desktop.
add_newline.sh
for f in `find ./ -name "*.cpp"`; do c=`tail -c 1 $f`; if [ "$c" != "" ]; then echo >> $f ; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment