Skip to content

Instantly share code, notes, and snippets.

@Habetdin
Created November 22, 2021 12:42
Show Gist options
  • Save Habetdin/e21567637be3d3c1e7876353548234e1 to your computer and use it in GitHub Desktop.
Save Habetdin/e21567637be3d3c1e7876353548234e1 to your computer and use it in GitHub Desktop.
Add a newline to the end of the files
# Based on https://unix.stackexchange.com/a/31955
find . -maxdepth 1 -name '*.cpp' -type f -exec sed -i -e '$a\' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment