Change file format DOS to Unix By ballacksave | March 11, 2022 0 Comment to unix (LF) : vi a.txt -c "set ff=unix" -c ":wq" to dos (CRLF) : vi a.txt -c "set ff=dos" -c ":wq"