How to change line ending format
for file in *.cppdo vi +':w ++ff=unix' +':q' "$file"doneConvert DOS/Windows line endings (CRLF) to Unix/Linux format (LF) using command line tools and Vim for batch processing.
How to change line ending format
for file in *.cppdo vi +':w ++ff=unix' +':q' "$file"done