Linux Server and Workstation Configuration How To

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
dos2unix PDF Print E-mail
Tuesday, 08 December 2009 19:10
AddThis Social Bookmark Button

Command dos2unix

dos2unix command converts a text file format DOS/Mac to UNIX format.

Syntax

dos2unix [options] [-o file ...] [-n source_file destination_file ...]

Options

-h displays help about the team.
-k destination_file preserves the creation date of the original file.
-q suppresses the messages and warnings during the execution team.
-V displays the version number.
-c sets the conversion mode: ASCII (default), 7bit, ISO, Mac.

Description

Dos2unix command is used to convert the formats of text files DOS/Mac to UNIX format. It is known that the formats of text files in different operating systems different. This line test files in DOS end with a CR and LF (carriage return and line feed), in UNIX - only a symbol of LF. Mode -o (works on default) all files specified on the command line, correspond to the format UNIX. In mode -n separately specify source_file and destination_file.

 

Add comment


Security code
Refresh

Useful Links

Follow us on ...

  • Digg: hgevs
  • Facebook Page: 180986722511
  • Linked In Group: 2571120
  • Ning: linuxconfignet
  • Twitter: linuxconfignet

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)