xfetch(1)

xfetch1

Fetch records from a local ncbi entrez direct archive by uid

Usage

xfetch [-db database] [{-id str ... | -input file}] [-stream]

Overview

xfetch prints to standard output requested portions of a local NCBI Entrez Direct archive produced by archive-pubmed(1) or the like, typically for further processing by xtract(1) or the like.

By default, it looks to standard input for either a raw list of UIDs or an ENTREZ_DIRECT XML object that additionally holds a database name.

Options

-db database

Fetch from the specified database, pubmed by default for now. (Explicitly specifying a database either on the command line or via ENTREZ_DIRECT XML will eventually become mandatory.)

-id str ...

UID(s) to fetch; may be internally delimited by whitespace and any punctuation other than . or _.

-input file

Read UIDs from the specified file.

-stream

Leave records compressed.

Environment

EDIRECT_LOCAL_ARCHIVE

Local archive directory. Expected to hold an absolute path; mandatory when not supplying a path on the command line.

From ncbi-entrez-direct 24.0.20250523+dfsg-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.