How to change line ending format

for file in *.cpp
do 
    vi +':w ++ff=unix' +':q' "$file"
done

Source: https://stackoverflow.com/a/95650

Tags:

Categories:

Updated: