1.Dd Feb 24, 1998 2.Dt DOS2UNIX 1 3.Sh NAME 4.Nm dos2unix 5.Nd convert ASCII files from DOS's CR/LF to UNIX's LF 6.Sh SYNOPSIS 7.Nm dos2unix 8.Op Fl p 9.Op Ar 10.Sh DESCRIPTION 11When called without parameters, the 12.Nm dos2unix 13utility reads from the standard input, 14transforming CR/LF pairs into an 15LF character and writing it to the standard output. 16If there's at least one filename specified, the 17.Ar file 18operands are processed in command line order, reading from the 19files specified and overwriting them with the converted version. 20 21If the 22.Op Fl p 23option is given, both the access and modification time of the 24original file are preserved. 25 26It's important to note that the 27.Nm dos2unix 28utility is the same program as the 29.Xr unix2dos 1 30utility. It simply checks its name to see what operation is expected. 31If you change the name of the binary, 32.Nm dos2unix 33will default to converting files from UNIX to DOS. 34.Sh RETURN VALUES 35The 36.Nm dos2unix 37utility exits 0 on success, and 1 if there was an error processing 38any of the files. Note however that execution of the program does 39not stop if one of the files has a problem. The offending file is 40simply skipped and processing of the remaining files continues. 41.Sh SEE ALSO 42.Xr unix2dos 1 43.Sh NOTES 44All complains, or even better, suggestions should be addressed to the author 45Oscar Bonilla <obonilla@galileo.edu> 46