comp (command)

Source: Wikipedia, the free encyclopedia.
comp

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.[6]

History

COMP.COM (among other commands) in IBM PC DOS 1.0.

In DOS, the comp command first appeared in PC DOS 1.0

DR DOS 6.0 also includes an implementation of the comp command.[8]

The

The command is also available in the

Syntax

The command-syntax is:[12]

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. .
  3. ^ http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf Archived 2019-09-25 at the Wayback Machine [bare URL PDF]
  4. ^ "OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14. Retrieved 2019-07-20.
  5. ^ "Comp".
  6. .
  7. ^ http://www.bitsavers.org/pdf/ibm/pc/dos/6172220_DOS_1.0_Jan82.pdf [bare URL PDF]
  8. ^ "DR DOS 6.0 User Guide Optimisation and Configuration Tips" (PDF). Archived from the original (PDF) on 2019-09-30. Retrieved 2019-08-13.
  9. ^ "FreeDOS 1.2 Updates Package - comp (FreeDOS Base)". Ibiblio.org. 2006-10-21. Retrieved 2022-09-04.
  10. ^ "Reactos/Reactos". GitHub. 3 January 2022.
  11. ^ "EFI Shells and Scripting". Intel. Retrieved 2013-09-25.
  12. ^ MS-DOS and Windows command line comp command

Further reading

External links