HOME

TheInfoList



OR:

In computing, comp is a command used on DEC OS/8,"Concise Command Language" (CCL). DOS, DR FlexOS, IBM OS/2, Microsoft Windows and related computer operating systems such as
ReactOS ReactOS is a free and open-source operating system for amd64/i686 personal computers intended to be binary-compatible with computer programs and device drivers made for Windows Server 2003 and later versions of Windows. ReactOS has been noted a ...
. It is used to perform comparisons of multiple computer files to show the differences between them.


History

In DOS, the comp command first appeared in PC DOS 1.0 and has been included in most versions of MS-DOS and PC DOS. A newer command, fc was added in DOS 3.3 which allows for line comparisons in addition to binary comparisons. DR DOS 6.0 also includes an implementation of the command. The FreeDOS version was developed by Paul Vojta and is licensed under the MIT License. Ged Murphy developed the
ReactOS ReactOS is a free and open-source operating system for amd64/i686 personal computers intended to be binary-compatible with computer programs and device drivers made for Windows Server 2003 and later versions of Windows. ReactOS has been noted a ...
version. It is licensed under the GNU GPL 2. The command is also available in the EFI shell.


Syntax

The command-
syntax In linguistics, syntax () is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure ( constituency) ...
is:MS-DOS and Windows command line comp command
/ref> comp Data1> Data2> d a l n= c


Parameters

* – Location and name of the first file or set of files * – Location and name of the second file or set of files */d – Display differences in decimal format (Default is hexadecimal) */a – Display differences as characters */l – Display the number of the line, instead of the byte offset */n= – Compare only the specified number of lines for each file */c – Perform a non case-sensitive comparison */off ine/code> – Process files with the offline attribute set */? – Display Help


See also

* Data comparison * List of DOS commands * diff


References


Further reading

* * *


External links


comp , Microsoft Docs
External DOS commands OS/2 commands ReactOS commands File comparison tools {{Windows-stub