Jump to content

comp (command)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ghettoblaster (talk | contribs) at 13:20, 20 July 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
comp
Developer(s)DEC, Digital Research, IBM, Microsoft, Paul Vojta, ReactOS Contributors
Initial releaseAugust 1981; 43 years ago (1981-08)
Operating systemOS/8, DOS, FlexOS, OS/2, Windows, ReactOS
TypeCommand

In computing, comp is a command used on DEC OS/8,[1] DOS,[2] DR FlexOS,[3] IBM OS/2,[4] Microsoft Windows[5] and related computer operating systems such as ReactOS. 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[6] 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.

The FreeDOS version was developed by Paul Vojta.[7] Ged Murphy developed the ReactOS version.[8]

The command is also available in the EFI shell.[9]

Syntax

The command-syntax is:[10]

comp [<Data1>] [<Data2>] [/d] [/a] [/l] [/n=<Number>] [/c]

Parameters

  • <Data1> – Location and name of the first file or set of files
  • <Data2> – 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=<Number> – Compare only the specified number of lines for each file
  • /c – Perform a non case-sensitive comparison
  • /off[line] – Process files with the offline attribute set
  • /? – Display Help

See also

References

  1. ^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 28 November 2017.
  2. ^ Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, p. 206, ISBN 0078819040.
  3. ^ http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
  4. ^ http://www.jatomes.com/Help/Os2Cmd.php#COMP
  5. ^ https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490883(v%3dtechnet.10)
  6. ^ http://www.bitsavers.org/pdf/ibm/pc/dos/6172220_DOS_1.0_Jan82.pdf
  7. ^ http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/comp.html
  8. ^ https://github.com/reactos/reactos/blob/master/base/applications/cmdutils/comp/comp.c
  9. ^ "EFI Shells and Scripting". Intel. Retrieved 2013-09-25.
  10. ^ https://www.computerhope.com/comp.htm

Further reading