Command: comp

  COMP compares two files.

Syntax:

  COMP [/options] [drive][path]file1 [drive][path]file2
       where [file1] and [file2] are file names (possibly with wild cards)
       or directory names. If [file2] is omitted, the current directory
       is assumed.
       drive  the drive letter, e.g. C:
       path   the directory, e.g. \example\
       file1  the first file to compare, e.g. test1.txt
       file2  the second file to compare, e.g. test2.txt

[Main menu] [top] (Syntax) [Options] [Comments] [Examples] [See also] [File]

Options:

  #       Do not print more than # errors per file. If # = 0, do not limit
          the number of errors. Default is 0 if [file1] refers to a
          single file, 10 if more than one file.
  /d      Displays the differences in decimal format. Default is hex.
  /a      Displays the differences using characters.
  /L      Displays the line number for the differences that occur.
  /n=nnn  Compares the first nnn lines of both files, even if the files are of
          difference size.
  /c      Ignores case (default is case sensitive).
  /?      Shows the help.

[Main menu] [top] [Syntax] (Options) [Comments] [Examples] [See also] [File]

Comments:

  - none -

[Main menu] [top] [Syntax] [Options] (Comments) [Examples] [See also] [File]

Examples:

  comp c:\program\help.txt c:\program\help1.txt

[Main menu] [top] [Syntax] [Options] [Comments] (Examples) [See also] [File]

See also:

  diskcomp
  fc
  md5sum

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] (See also) [File]

File:

  Please read this command's lsm file also.
  You will find the updated version (internet) here and
  the version described in this manual page here.
  The lsm file contains information about the name of the programmer,
  the download site, and some other command related information.

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] [See also] (File)


  Copyright © 1998 Jim Hall, updated 2007 by W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.