{
    "content": [
        {
            "type": "text",
            "text": "# inplace (man)\n\n## NAME\n\ninplace - emulate sed/perl/ruby in-place editing\n\n## SYNOPSIS\n\ngawk -i inplace ...\n\n## DESCRIPTION\n\nThe  inplace  extension  adds  two  functions named inplacebegin() and inplaceend().  These\nfunctions are meant to be invoked from the inplace.awk wrapper which is installed  when  gawk\nis.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **BUGS**\n- **EXAMPLE**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYING PERMISSIONS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "inplace",
        "section": "",
        "mode": "man",
        "summary": "inplace - emulate sed/perl/ruby in-place editing",
        "synopsis": "gawk -i inplace ...",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "gawk -i inplace 'script' files ...",
            "gawk -i inplace -f scriptfile files ..."
        ],
        "see_also": [
            {
                "name": "filefuncs",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/filefuncs/3am/json"
            },
            {
                "name": "fnmatch",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/fnmatch/3am/json"
            },
            {
                "name": "fork",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/fork/3am/json"
            },
            {
                "name": "ordchr",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/ordchr/3am/json"
            },
            {
                "name": "dir",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/dir/3am/json"
            },
            {
                "name": "readfile",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/readfile/3am/json"
            },
            {
                "name": "revoutput",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/revoutput/3am/json"
            },
            {
                "name": "rwarray",
                "section": "3am",
                "url": "https://www.chedong.com/phpMan.php/man/rwarray/3am/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "EXAMPLE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYING PERMISSIONS",
                "lines": 16,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "inplace - emulate sed/perl/ruby in-place editing\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "gawk -i inplace ...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The  inplace  extension  adds  two  functions named inplacebegin() and inplaceend().  These\nfunctions are meant to be invoked from the inplace.awk wrapper which is installed  when  gawk\nis.\n\nBy  default, each named file on the command line is replaced with a new file of the same name\nwhose contents are the results of running the AWK program.  If the user supplies an AWK vari‐\nable named inplace::suffix in a BEGIN rule or on the command line, then the inplace extension\nconcatenates that suffix onto the original filename and uses the result as a filename for re‐\nnaming the original.\n\nFor  backwards  compatibility,  the variable will also check INPLACESUFFIX (in the awk name‐\nspace) for the suffix to use if inplace::suffix is not set.\n\nOne can disable inplace editing selectively by placing inplace::enable=0 on the command  line\nprior  to files that should be processed normally.  One can reenable inplace editing by plac‐\ning inplace::enable=1 prior to files that should be subject to inplace editing.\n",
                "subsections": []
            },
            "BUGS": {
                "content": "While the extension does attempt to preserve ownership and permissions, it makes  no  attempt\nto copy the ACLs from the original file.\n\nIf the program dies prematurely, as might happen if an unhandled signal is received, a tempo‐\nrary file may be left behind.\n",
                "subsections": []
            },
            "EXAMPLE": {
                "content": "gawk -i inplace 'script' files ...\ngawk -i inplace -f scriptfile files ...\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "GAWK: Effective AWK Programming, filefuncs(3am), fnmatch(3am), fork(3am), ordchr(3am),  read‐\ndir(3am), readfile(3am), revoutput(3am), rwarray(3am).\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Andrew Schorr, schorr@telemetry-investments.com.\n",
                "subsections": []
            },
            "COPYING PERMISSIONS": {
                "content": "Copyright © 2012, 2013, 2015, 2018, 2019, Free Software Foundation, Inc.\n\nPermission is granted to make and distribute verbatim copies of this manual page provided the\ncopyright notice and this permission notice are preserved on all copies.\n\nPermission is granted to copy and distribute modified versions of this manual page under  the\nconditions  for verbatim copying, provided that the entire resulting derived work is distrib‐\nuted under the terms of a permission notice identical to this one.\n\nPermission is granted to copy and distribute translations of this manual  page  into  another\nlanguage,  under  the above conditions for modified versions, except that this permission no‐\ntice may be stated in a translation approved by the Foundation.\n\n\n\nFree Software Foundation                     Jun 26 2018                                INPLACE(3am)",
                "subsections": []
            }
        }
    }
}