comp (command)

From Wikipedia, the free encyclopedia
(Redirected from COMP (DOS command))
Jump to navigation Jump to search
comp
DevelopersDEC, IBM, Microsoft, Digital Research, Novell, Paul Vojta, ReactOS Contributors
Initial releaseAugust 1981; 44 years ago (1981-08)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemOS/8, PC DOS, MS-DOS, FlexOS, SISNE plus, OS/2, eComStation, ArcaOS, Windows, DR DOS, FreeDOS, ReactOS
    PlatformCross-platform
    TypeCommand
    LicenseFreeDOS: MIT
    ReactOS: GNU GPL 2

    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

    [edit | edit source]
    File:IBM PC DOS 1.0 screenshot.png
    COMP.COM (among other commands) in IBM PC DOS 1.0.

    In DOS, the comp command first appeared in PC DOS 1.0[7] 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 comp command.[8]

    The FreeDOS version was developed by Paul Vojta and is licensed under the MIT License.[9] Ged Murphy developed the ReactOS version. It is licensed under the GNU GPL 2.[10]

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

    Syntax

    [edit | edit source]

    The command-syntax is:[12]

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

    Parameters

    [edit | edit source]
    • <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

    [edit | edit source]

    References

    [edit | edit source]
    1. ^ "Concise Command Language" (CCL).Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    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. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ http://www.bitsavers.org/pdf/ibm/pc/dos/6172220_DOS_1.0_Jan82.pdf [bare URL PDF]
    8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    10. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    11. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    12. ^ MS-DOS and Windows command line comp command

    Further reading

    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]