---
name: "fetch-pubmed"
section: "1"
platform: "linux"
package: "ncbi-entrez-direct"
version: "19.0.20230216+dfsg-2+b1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/fetch-pubmed"
---

# fetch-pubmed(1)

fetch records from a local NCBI PubMed archive by UID

## NAME

fetch-pubmed - fetch records from a local NCBI PubMed archive by UID

## SYNOPSIS

**fetch-pubmed** \[**-strict**\|**-mixed**\] \[\[**-path\]** *dir***\]** **\[-all\]** **\[-fresh\]** **\[-asn\|-xml\|-pme\]** **\[-turbo\]**

## DESCRIPTION

**fetch-pubmed reads a list of record IDs from standard input** **and prints to standard output the corresponding portions of** **a local NCBI PubMed archive produced by [archive-pubmed(1)](/archive-pubmed/1.md),** **typically for further processing by [xtract(1)](/xtract/1.md) or the like.**

## OPTIONS

- **-strict\|-mixed**

  **Run [rchive(1)](/rchive/1.md) with -flag strict** **or -flag mixed, respectively.**

- **\[-path\]** *dir*

  **Use the local archive in** *dir***.**

- **-all**

  **Dump the entire archive.**

- **-fresh**

  **Dump the entire archive into filenames of the form** **pubmed001.xml.gz**, **using any existing such files as a starting point.**

- **-asn**

  **Retrieve ASN.1.**

- **-xml**

  **Retrieve XML (default).**

- **-pme**

  **Produce ASN.1 on the fly, via pma2pme.**

- **-turbo**

  **Add NEXT\_RECORD\_SIZE nodes to speed navigation.**

## ENVIRONMENT

- **EDIRECT\_PUBMED\_MASTER**

  **Local archive directory to use in the absence of -path.** **Expected to hold an absolute path;** **mandatory when not supplying a path on the command line.**

## SEE ALSO

[**archive-pubmed**(1)](/archive-pubmed/1.md), [**cit2pmid**(1)](/cit2pmid/1.md), [**ds2pme**(1)](/ds2pme/1.md), [**edict**(1)](/edict/1.md), [**phrase-search**(1)](/phrase-search/1.md), [**pma2pme**(1)](/pma2pme/1.md), [**rchive**(1)](/rchive/1.md), [**stream-pubmed**(1)](/stream-pubmed/1.md), [**xtract**(1)](/xtract/1.md).
