u2d Command

File Converter

u2d Command

Syntax

u2d [-bBuUlLfFzZ] [[<]input_file] [[>]output_file]

Description

Lines in DOS text files are terminated by a carriage-return/line-feed pair, while lines in UNIX text files are terminated by a single line feed. The u2d command lets you convert text files from UNIX format to DOS format.

The input_file and output_file arguments optionally can have a redirection symbol (>, <, |) in front of them. The u2d command reads from standard input and writes to standard output if there are no file arguments. input_file is the target file for conversion and output_file is the name of the converted file.

Options

-b/-B

Binary—Preserves 8-bit character codes in the output file. If it is not specified, all 8-bit codes are converted to 7-bit codes.

-u/-U

Uppercase—Converts alphabetic characters in the input file to upper case in the output file.

-l/-L

Lowercase—Converts alphabetic characters in the input file to lower case in the output file.

-f/-F
      

Fudge—Causes u2d to leave any carriage-return characters in the input file alone. Ordinarily, carriage-return characters are removed in the conversion and line-feed characters are changed into CR/LF pairs. This option preserves carriage-return characters in the output file.

-z/-Z

Write EOF—Adds a DOS end-of-file marker to the end of the output file unless there is already one there.


Related Topics

Introducing File Converter

d2u Command