If you have used the code from Initializr, you may have noticed that some of the files have DOS-style line endings (CR+LF) instead of Unix-style line endings (LF). See the Initializr bug report All output files should have Unix-style line-endings.
This is annoying to no end because once you notice it, you may already have committed and made changes to the code. Changing the code then may cause conflicts in your version control.
Another issue is that Initializr's code mixes tabs and spaces, and some files have lines ending with spaces.
This little script i wrote fixes these problems.
Just download it,
cd
to the directory where you extracted the zip file from Initializr
and run it.
The script requires the commands dos2unix
, sed
and expand
.
I have only tested it on Linux,
so please let me know if it works or not on Macs.
Previous: Creating an interactive CV
Next: Not one of those posts