Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NAME
       dos2unix	-- convert ASCII files from DOS's CR/LF	to UNIX's LF

SYNOPSIS
       dos2unix	[-p] [file ...]

DESCRIPTION
       When  called  without  parameters,  the dos2unix	utility	reads from the
       standard	input, transforming CR/LF pairs	into an	LF character and writ-
       ing it to the standard output.  If there's at least one filename	speci-
       fied, the file operands are processed in	command	 line  order,  reading
       from  the  files	specified and overwriting them with the	converted ver-
       sion.

       If the [-p] option is given, both the access and	modification  time  of
       the original file are preserved.

       It's important to note that the dos2unix	utility	is the same program as
       the  unix2dos(1)	 utility. It simply checks its name to see what	opera-
       tion is expected.  If you change	the name of the	binary,	dos2unix  will
       default to converting files from	UNIX to	DOS.

RETURN VALUES
       The  dos2unix  utility  exits 0 on success, and 1 if there was an error
       processing any of the files. Note however that execution	of the program
       does not	stop if	one of the files has a problem.	The offending file  is
       simply skipped and processing of	the remaining files continues.

SEE ALSO
       unix2dos(1)

NOTES
       All  complains,	or even	better,	suggestions should be addressed	to the
       author Oscar Bonilla <obonilla@galileo.edu>

				 Feb 24, 1998			   DOS2UNIX(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=unix2mac&sektion=1&manpath=FreeBSD+Ports+14.3.quarterly>

home | help