comp

Windows CMD · Text · available in the simulator

What it does

Binary file comparison.

Syntax

comp [datos1] [datos2] [/d] [/a] [/l] [/n=número] [/c]

Options and parameters

  • /c

    ignores case

  • /a

    displays differences as characters

  • /m

    displays only the differences

  • /l

    displays line numbers

  • /A

    Displays differences as characters.

  • /D

    Displays differences in decimal format.

  • /L

    Displays the line number for each difference.

  • /N

    Compares only the specified number of lines.

  • /C

    Performs a case-insensitive comparison.

Usage examples

  • comp f1 f2
  • comp f1 f2 /c
  • comp f1 f2 /m /a
  • comp a.txt b.txt
Practise comp

Related commands