---
name: "pm-collect"
section: "1"
platform: "linux"
package: "ncbi-entrez-direct"
version: "24.0.20250523+dfsg-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pm-collect"
---

# pm-collect(1)

collect records from a local NCBI PubMed archive

## NAME

pm-collect - collect records from a local NCBI PubMed archive

## SYNOPSIS

**pm-collect** *archive* *current*

## DESCRIPTION

**pm-collect** collects records from the local NCBI PubMed archive in *archive* into files with names of the form *current***/pubmed001.xml.gz**, using any existing such files as a starting point.

## ENVIRONMENT

- **EDIRECT\_CHUNK\_SIZE**

  How many records to collect in each output file (**250000** by default).

## SEE ALSO

[**archive-pubmed**(1)](/archive-pubmed/1.md), [**rchive**(1)](/rchive/1.md), [**xtract**(1)](/xtract/1.md).
