.TH XFETCH 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual" .SH NAME xfetch \- fetch records from a local NCBI Entrez Direct archive by UID .SH SYNOPSIS .B xfetch [\|\fB\-db\fP\ \fIdatabase\fP\|] [\|\fB\-id\fP\ \fIstr\fP...|\fB\-input\fP\ \fIfile\fP\|] [\|\fB\-stream\fP\] .SH DESCRIPTION \fBxfetch\fP prints to standard output requested portions of a local NCBI Entrez Direct archive produced by \fBarchive\-pubmed\fP(1) or the like, typically for further processing by \fBxtract\fP(1) or the like. By default, it looks to standard input for either a raw list of UIDs or an \fBENTREZ_DIRECT\fP XML object that additionally holds a database name. .SH OPTIONS .TP \fB\-db\fP\ \fIdatabase\fP Fetch from the specified database, \fBpubmed\fP by default for now. (Explicitly specifying a database either on the command line or via \fBENTREZ_DIRECT\fP XML will eventually become mandatory.) .TP \fB\-id\fP\ \fIstr\fP ... UID(s) to fetch; may be internally delimited by whitespace and any punctuation other than \fB.\fP or \fB_\fP. .TP \fB\-input\fP\ \fIfile\fP Read UIDs from the specified file. .TP \fB\-stream\fP Leave records compressed. .SH ENVIRONMENT .TP .B EDIRECT_LOCAL_ARCHIVE Local archive directory. Expected to hold an absolute path; mandatory when not supplying a path on the command line. .SH SEE ALSO .BR archive\-nihocc (1), .BR archive\-nlmnlp (1), .BR archive\-nmcds (1), .BR archive\-pids (1), .BR archive\-pmc (1), .BR archive\-pubmed (1), .BR archive\-taxonomy (1), .BR cit2pmid (1), .BR combine\-uid\-lists (1), .BR difference\-uid\-lists (1), .BR download\-ncbi\-data (1), .BR download\-pmc (1), .BR download\-pubmed (1), .BR ds2pme (1), .BR ds2pme (1), .BR ecollect (1), .BR edict (1), .BR efetch (1), .BR elink (1), .BR esample (1), .BR esearch (1), .BR exclude\-uid\-lists (1), .BR intersect\-uid\-lists (1), .BR pm\-refresh (1), .BR pma2apa (1), .BR pma2apa (1), .BR pma2pme (1), .BR pma2pme (1), .BR pmc2bioc (1), .BR pmc2info (1), .BR rchive (1), .BR transmute (1), .BR xfilter (1), .BR xinfo (1), .BR xlink (1), .BR xsearch (1), .BR xtract (1).