.TH ECOLLECT 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual" .SH NAME ecollect \- list NCBI Entrez unique identifiers .SH SYNOPSIS \fBecollect\fP \fB\-db\fP\ \fIname\fP \fB\-web\fP\ \fIstr\fP \fB\-key\fP\ \fIN\fP [\|\fB\-days\fP|\fB\-reldate\fP\ \fIN\fP\|] [\|\fB\-datetype\fP\ \fIfield\fP\|] [\|\fB\-mindate\fP\ \fIdate\fP\|] [\|\fB\-maxdate\fP\ \fIdate\fP\|] \fBecollect\fP \fB\-db\fP\ \fIname\fP \fB\-query\fP\ \fIstr\fP [\|\fB\-days\fP|\fB\-reldate\fP\ \fIN\fP\|] [\|\fB\-datetype\fP\ \fIfield\fP\|] [\|\fB\-mindate\fP\ \fIdate\fP\|] [\|\fB\-maxdate\fP\ \fIdate\fP\|] \fBecollect\fP \fB\-db\fP\ \fIname\fP \fB\-id\fP\ \fIstr\fP...|\fB\-rest\fP\ \fIstr\fP|\fB\-input\fP\ \fIfile\fP .SH DESCRIPTION \fBecollect\fP lists unique identifiers from NCBI Entrez, either corresponding to a live query or explicitly supplied. In either case, it presents them one per line in numerical order with any duplicates consolidated. .SH OPTIONS .SS Source Specification .TP \fB\-db\fP\ \fIname\fP Entrez database name. Mandatory even when explicitly supplying UIDs. .TP \fB\-web\fP\ \fIstr\fP NCBI \fBWebEnv\fP value corresponding to a previous query, optionally subject to further filtering by date. .TP \fB\-key\fP\ \fIN\fP That query's number. .TP \fB\-query\fP\ \fIstr\fP Query string. .TP \fB\-id\fP\ \fIstr\fP ...|\fB\-rest\fP\ \fIstr\fP Existing UID(s) to format; 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. .SS Date Constraint .TP \fB\-days\fP|\fB\-reldate\fP\ \fIN\fP Return only results from the past \fIN\fP days. .TP \fB\-datetype\fP\ \fIfield\fP Which date field (in abbreviated form) to consider. .TP \fB\-mindate\fP\ \fIdate\fP Start of date range. .TP \fB\-maxdate\fP\ \fIdate\fP End of date range. .SH SEE ALSO .BR cit2pmid (1), .BR combine\-uid\-lists (1), .BR difference\-uid\-lists (1), .BR efetch (1), .BR efilter (1), .BR elink (1), .BR esearch (1), .BR exclude\-uid\-lists (1), .BR intersect\-uid\-lists (1), .BR nquire (1), .BR xfetch (1), .BR xfilter (1), .BR xlink (1), .BR xsearch (1).