{
    "mode": "man",
    "parameter": "wdiff",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/wdiff/1/json",
    "generated": "2026-05-30T05:14:49Z",
    "synopsis": "wdiff [OPTION]... FILE1 FILE2\nwdiff -d [OPTION]... [FILE]",
    "sections": {
        "NAME": {
            "content": "wdiff - display word differences between text files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "wdiff [OPTION]... FILE1 FILE2\nwdiff -d [OPTION]... [FILE]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "wdiff - Compares words in two files and report differences.\n\nMandatory arguments to long options are mandatory for short options too.\n",
            "subsections": [
                {
                    "name": "-C --copyright",
                    "content": "display copyright then exit\n",
                    "flag": "-C",
                    "long": "--copyright"
                },
                {
                    "name": "-1 --no-deleted",
                    "content": "inhibit output of deleted words\n",
                    "flag": "-1",
                    "long": "--no-deleted"
                },
                {
                    "name": "-2 --no-inserted",
                    "content": "inhibit output of inserted words\n",
                    "flag": "-2",
                    "long": "--no-inserted"
                },
                {
                    "name": "-3 --no-common",
                    "content": "inhibit output of common words\n",
                    "flag": "-3",
                    "long": "--no-common"
                },
                {
                    "name": "-a --auto-pager",
                    "content": "automatically calls a pager\n",
                    "flag": "-a",
                    "long": "--auto-pager"
                },
                {
                    "name": "-d --diff-input",
                    "content": "use single unified diff as input\n",
                    "flag": "-d",
                    "long": "--diff-input"
                },
                {
                    "name": "-h --help",
                    "content": "display this help then exit\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-i --ignore-case",
                    "content": "fold character case while comparing\n",
                    "flag": "-i",
                    "long": "--ignore-case"
                },
                {
                    "name": "-l --less-mode",
                    "content": "variation of printer mode for \"less\"\n",
                    "flag": "-l",
                    "long": "--less-mode"
                },
                {
                    "name": "-n --avoid-wraps",
                    "content": "do not extend fields through newlines\n",
                    "flag": "-n",
                    "long": "--avoid-wraps"
                },
                {
                    "name": "-p --printer",
                    "content": "overstrike as for printers\n",
                    "flag": "-p",
                    "long": "--printer"
                },
                {
                    "name": "-s --statistics",
                    "content": "say how many words deleted, inserted etc.\n",
                    "flag": "-s",
                    "long": "--statistics"
                },
                {
                    "name": "-t --terminal",
                    "content": "use termcap as for terminal displays\n",
                    "flag": "-t",
                    "long": "--terminal"
                },
                {
                    "name": "-v --version",
                    "content": "display program version then exit\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "-w --start-delete",
                    "content": "string to mark beginning of delete region\n",
                    "flag": "-w",
                    "long": "--start-delete"
                },
                {
                    "name": "-x --end-delete",
                    "content": "string to mark end of delete region\n",
                    "flag": "-x",
                    "long": "--end-delete"
                },
                {
                    "name": "-y --start-insert",
                    "content": "string to mark beginning of insert region\n",
                    "flag": "-y",
                    "long": "--start-insert"
                },
                {
                    "name": "-z --end-insert",
                    "content": "string to mark end of insert region\n",
                    "flag": "-z",
                    "long": "--end-insert"
                }
            ]
        },
        "COMPATIBILITY": {
            "content": "Some  options  that  used to provide some unique functionality are no longer recommended, but\nstill recognized for the sake of backwards compatibility.\n",
            "subsections": [
                {
                    "name": "-K --no-init-term",
                    "content": "Now synonymous to --terminal, which never initializes the terminal.\n",
                    "flag": "-K",
                    "long": "--no-init-term"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Franc,ois Pinard <pinard@iro.umontreal.ca>.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <wdiff-bugs@gnu.org>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 1992, 1997, 1998, 1999, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.  There is NO warranty; not even\nfor MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "The  full  documentation  for wdiff is maintained as a Texinfo manual.  If the info and wdiff\nprograms are properly installed at your site, the command\n\ninfo wdiff\n\nshould give you access to the complete manual.\n\n\n\nwdiff 1.2.2                                  April 2014                                     WDIFF(1)",
            "subsections": []
        }
    },
    "summary": "wdiff - display word differences between text files",
    "flags": [
        {
            "flag": "-C",
            "long": "--copyright",
            "arg": null,
            "description": "display copyright then exit"
        },
        {
            "flag": "-1",
            "long": "--no-deleted",
            "arg": null,
            "description": "inhibit output of deleted words"
        },
        {
            "flag": "-2",
            "long": "--no-inserted",
            "arg": null,
            "description": "inhibit output of inserted words"
        },
        {
            "flag": "-3",
            "long": "--no-common",
            "arg": null,
            "description": "inhibit output of common words"
        },
        {
            "flag": "-a",
            "long": "--auto-pager",
            "arg": null,
            "description": "automatically calls a pager"
        },
        {
            "flag": "-d",
            "long": "--diff-input",
            "arg": null,
            "description": "use single unified diff as input"
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "display this help then exit"
        },
        {
            "flag": "-i",
            "long": "--ignore-case",
            "arg": null,
            "description": "fold character case while comparing"
        },
        {
            "flag": "-l",
            "long": "--less-mode",
            "arg": null,
            "description": "variation of printer mode for \"less\""
        },
        {
            "flag": "-n",
            "long": "--avoid-wraps",
            "arg": null,
            "description": "do not extend fields through newlines"
        },
        {
            "flag": "-p",
            "long": "--printer",
            "arg": null,
            "description": "overstrike as for printers"
        },
        {
            "flag": "-s",
            "long": "--statistics",
            "arg": null,
            "description": "say how many words deleted, inserted etc."
        },
        {
            "flag": "-t",
            "long": "--terminal",
            "arg": null,
            "description": "use termcap as for terminal displays"
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "display program version then exit"
        },
        {
            "flag": "-w",
            "long": "--start-delete",
            "arg": null,
            "description": "string to mark beginning of delete region"
        },
        {
            "flag": "-x",
            "long": "--end-delete",
            "arg": null,
            "description": "string to mark end of delete region"
        },
        {
            "flag": "-y",
            "long": "--start-insert",
            "arg": null,
            "description": "string to mark beginning of insert region"
        },
        {
            "flag": "-z",
            "long": "--end-insert",
            "arg": null,
            "description": "string to mark end of insert region"
        }
    ],
    "examples": [],
    "see_also": []
}