How do you change DOS line breaks in UNIX?
Answer
Option 1: Converting DOS to UNIX with
dos2unix CommandThe simplest way to convert line breaks in a text file is to use the dos2unix tool. The command converts the file without saving it in the original format. If you want to save the original file, add the -b attribute before the file name.
Answer
Option 1: Converting DOS to UNIX with
dos2unix CommandThe simplest way to convert line breaks in a text file is to use the dos2unix tool. The command converts the file without saving it in the original format. If you want to save the original file, add the -b attribute before the file name.