Forrest logo
back to the dos2unix tool

dos2unix:tldr:cebf3

dos2unix: Create a copy with Unix-style line endings.
$ dos2unix -n ${filename} ${new_filename}
try on your machine

The command "dos2unix" is used to convert text files from DOS/Windows format to Unix/Linux format. The "-n" option tells the command not to overwrite the original file, and instead, create a new file with the converted text.

In the command, ${filename} represents the name of the original file that you want to convert. ${new_filename} represents the desired name for the new file that will contain the converted text.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dos2unix tool