Created
December 1, 2016 18:33
-
-
Save annikoff/e548460558d3ced912cfd9b87ebd41d5 to your computer and use it in GitHub Desktop.
This adds \n at the end of the file only if it doesn’t already end with a newline.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in **/*.@(rb) ;do | |
sed -i -e '$a\' $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment