{
    "mode": "perldoc",
    "parameter": "ExtUtils::Command",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/ExtUtils%3A%3ACommand/json",
    "generated": "2026-06-14T07:28:40Z",
    "synopsis": "perl -MExtUtils::Command -e cat files... > destination\nperl -MExtUtils::Command -e mv source... destination\nperl -MExtUtils::Command -e cp source... destination\nperl -MExtUtils::Command -e touch files...\nperl -MExtUtils::Command -e rmf files...\nperl -MExtUtils::Command -e rmrf directories...\nperl -MExtUtils::Command -e mkpath directories...\nperl -MExtUtils::Command -e eqtime source destination\nperl -MExtUtils::Command -e testf file\nperl -MExtUtils::Command -e testd directory\nperl -MExtUtils::Command -e chmod mode files...\n...",
    "sections": {
        "NAME": {
            "content": "ExtUtils::Command - utilities to replace common UNIX commands in Makefiles etc.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "perl -MExtUtils::Command -e cat files... > destination\nperl -MExtUtils::Command -e mv source... destination\nperl -MExtUtils::Command -e cp source... destination\nperl -MExtUtils::Command -e touch files...\nperl -MExtUtils::Command -e rmf files...\nperl -MExtUtils::Command -e rmrf directories...\nperl -MExtUtils::Command -e mkpath directories...\nperl -MExtUtils::Command -e eqtime source destination\nperl -MExtUtils::Command -e testf file\nperl -MExtUtils::Command -e testd directory\nperl -MExtUtils::Command -e chmod mode files...\n...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The module is used to replace common UNIX commands. In all cases the functions work from @ARGV\nrather than taking arguments. This makes them easier to deal with in Makefiles. Call them like\nthis:\n\nperl -MExtUtils::Command -e somecommand some files to work on\n\nand *NOT* like this:\n\nperl -MExtUtils::Command -e 'somecommand qw(some files to work on)'\n\nFor that use Shell::Command.\n\nFilenames with * and ? will be glob expanded.\n\nFUNCTIONS\ncat\ncat file ...\n\nConcatenates all files mentioned on command line to STDOUT.\n\neqtime\neqtime source destination\n\nSets modified time of destination to that of source.\n\nrmrf\nrmrf files or directories ...\n\nRemoves files and directories - recursively (even if readonly)\n\nrmf\nrmf file ...\n\nRemoves files (even if readonly)\n\ntouch\ntouch file ...\n\nMakes files exist, with current timestamp\n\nmv\nmv sourcefile destinationfile\nmv sourcefile sourcefile destinationdir\n\nMoves source to destination. Multiple sources are allowed if destination is an existing\ndirectory.\n\nReturns true if all moves succeeded, false otherwise.\n\ncp\ncp sourcefile destinationfile\ncp sourcefile sourcefile destinationdir\n\nCopies sources to the destination. Multiple sources are allowed if destination is an\nexisting directory.\n\nReturns true if all copies succeeded, false otherwise.\n\nchmod\nchmod mode files ...\n\nSets UNIX like permissions 'mode' on all the files. e.g. 0666\n\nmkpath\nmkpath directory ...\n\nCreates directories, including any parent directories.\n\ntestf\ntestf file\n\nTests if a file exists. *Exits* with 0 if it does, 1 if it does not (ie. shell's idea of\ntrue and false).\n\ntestd\ntestd directory\n\nTests if a directory exists. *Exits* with 0 if it does, 1 if it does not (ie. shell's idea\nof true and false).\n\ndos2unix\ndos2unix files or dirs ...\n\nConverts DOS and OS/2 linefeeds to Unix style recursively.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Shell::Command which is these same functions but take arguments normally.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Nick Ing-Simmons \"ni-s@cpan.org\"\n\nMaintained by Michael G Schwern \"schwern@pobox.com\" within the ExtUtils-MakeMaker package and,\nas a separate CPAN package, by Randy Kobes \"r.kobes@uwinnipeg.ca\".\n",
            "subsections": []
        }
    },
    "summary": "ExtUtils::Command - utilities to replace common UNIX commands in Makefiles etc.",
    "flags": [],
    "examples": [],
    "see_also": []
}