Manual Page Result
0
Command: pq | Section: 7 | Source: UNIX v10 | File: pq.7
PQ(7) Miscellaneous Information Manual PQ(7)
NAME
pq - telephonet directory assistance
SYNOPSIS
pq [ option ... ] query
DESCRIPTION
Pq queries `Post' directory assistance computers for information from
the AT&T phone book. A normal query is a name, in the form first.mid-
dle.middle2.last,suffix, where only last is required. Earlier names
may be truncated, even to a null string, and extra punctuation may be
dropped. Other fields can be specified, in the form attribute=value,
with fields separated by /. The attributes are
pn
name personal (full) name; for prefix match on last name, append * or
...; for phonetic search, append or prepend ?
first, middle, middle2, last, suffix
parts of name, prefix-matched except for suffix
pid, ssn
personnel identification number, social security number
org organization code
tl title: abbreviated or prefix-matched; e.g. tl=dh, tl=dep.he
tel phone number: (908)582-6050, punctuation optional, parts may be
omitted from left
area, exch, ext
parts of phone number
loc location code; for prefix match, append *
room, street, city, state, zip
parts of address, prefix-matched except for state
ema email address; for prefix match, append *
multi which of multiple addresses for one employee; e.g. multi=2
The options are
-l The query is a location code.
-o format
Provide output in the specfied format, a string like that of
printf(3), with format codes being attribute names.
EXAMPLES
pq penzias
pq a.a.penzias
pq ema=research!aap
Three ways to find a person.
pq loc=mh/room=2b519
Find members of an office.
pq -l mt
Find information about a location.
pq -o "%24pn %10org %6loc %6room %12tel %ema" a.a.penzias
The default output format.
FILES
$POST/lib/dispatch directory configuration file
SEE ALSO
tel (7)
PQ(7)