DBGET - bget command
NAME
bget - Get entries from a database
SYNOPSIS
bget dbname [ -fSmx ] [ -p dbtab ] [ -- ] [ identifier ... ]
DESCRIPTION
Bget extracts entries specified by identifiers (entry names
or accession numbers) from a given database.
The argument dbname is a database name defined in the
dbtab(5L). Dbname is case-insensitive. When dbname is
omim, all command arguments except -p are passed to omimget.
Bget sets the environment variable omim by concatenating the
database directory and the database name defined in the
dbtab(5L).
The following options are available:
-f Print the records (if found) in FASTA format. The
options -f and -S are mutually exclusive.
-S Print records (if found) in BIONET (aka Stanford) for-
mat. The options -S and -f are mutually exclusive.
-m Enable mail service mode; all messages are sent to the
standard out instead of the standard error.
-x Quiet mode; suppress error message except fatal ones.
-p Set the dbtab to an alternate dbtab(5L).
The identifier is either an entry name or an accession
number for GenBank, EMBL, PIR, and Swiss-Prot. It is a
reference code number for PRF, a four-letter identifier for
PDB, and a four-letter PDB identifier plus a chain identif-
ier for PDBSTR. Multiple identifiers may be specified on
the command line.
When identifier is omitted, bget reads identifiers from the
standard input. If the standard input is connected to a
terminal, bget interactively prompts for identifiers. Bget
terminates when the user type EOF (often ^D)) character or
enter ``end''.
Identifiers are case-insensitive.
EXAMPLES
Retrieve ``GenBank'' entries with the entry name ``RATSMCC''
and the accession number ``X65450'' and convert them to the
FASTA format.
bget genbank -f ratsmcc x65450
FILES
/bio/etc/dbtab The default dbtab(5L) file.
SEE ALSO
dbtab(5L)
DIAGNOSTICS
The error messages produced by bget are intended to be
self-explanatory.