home *** CD-ROM | disk | FTP | other *** search
-
-
-
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
-
-
-
- NAME
- NAME
- NAME
- NAME
- pindex - primitive file indexer
-
- SYNTAX
- SYNTAX
- SYNTAX
- SYNTAX
- pindex [ -______ ] ______ _______ [ ________ ... ]
- pindex -number infile outfile outfile2
- pindex -
- pindex -
-
- DESCRIPTION
- DESCRIPTION
- DESCRIPTION
- DESCRIPTION
- ______ takes an input file and produces from it an indexed
- Pindex
- version. In the default case, it assumes that each line of
- the input file is one record, and writes to the (sole)
- output file a file of the following format:
-
- + The first long int is the number of items in the file
- o
- (call it _).
- n
-
- + The next _ long ints are the byte indexes in the output
- o n
- file of the start of each item. If you're trying to get
- the _th item, the _th index will point at its start, and
- i i
- the (_+1)th index will point at the byte after its end.
- i
-
- + The next long int is the byte index of an imaginary byte
- o
- one past the last in the file. It's provided so that you
- can retrieve the last element in the file uniformly.
-
- + Finally the data items from the input file are presented,
- o
- with no delimiters, in the order in which they appeared
- in the input file.
-
- If you specify the -______ option, the input file is to be
- number
- treated as containing groups of ______ lines, and ______
- number pindex
- will create ______ output files, one for the first items in
- number
- each group, one file for the second, and so forth.
-
- OPTIONS
- OPTIONS
- OPTIONS
- OPTIONS
- -______
- -number
- -
- -
- Treat the input file as containing groups of ______
- number
- lines, and create ______ output files, one for the
- number
- first items in each group, one file for the second, and
- so forth.
-
- EXAMPLES
- EXAMPLES
- EXAMPLES
- EXAMPLES
- If you had a file called ______ containing
- states
-
- Florida
- Georgia
- Peru
-
- and issued the command
-
- pindex states states.pin
-
- the resulting ______.___ file would have the following
- states pin
-
-
-
- Page 1 (printed 7/16/91)
-
-
-
-
-
-
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
-
-
-
- contents (on a big-endian machine with 32-bit-wide long
- ints):
-
- \000 \000 \000 \003 \000 \000 \000 \024
- \000 \000 \000 \033 \000 \000 \000 \042
- \000 \000 \000 \056 F l o r
- i d a G e o r g
- i a P e r u
-
- If you had a file called ______ containing
- people
-
- Schmoe
- Joe
- Fishbeck
- Leslie
-
- and issued the command
-
- pindex -2 people lnames.pin fnames.pin
-
- you'd get an ______.___ containing (under the same
- lnames pin
- circumstance as above):
-
- \000 \000 \000 \002 \000 \000 \000 \020
- \000 \000 \000 \026 \000 \000 \000 \036
- S c h m o e F i
- s h b e c k
-
- and an ______.___ containing:
- fnames pin
-
- \000 \000 \000 \002 \000 \000 \000 \020
- \000 \000 \000 \023 \000 \000 \000 \031
- J o e L e s l i
- e
-
- WARNINGS
- WARNINGS
- WARNINGS
- WARNINGS
- A line containing only a newline will be treated as EOF. (I
- told you it was a primitive file indexer.)
-
- The number of output files ______ can create is limited by
- pindex
- the number of files your system can have open at one time.
- (It would not be difficult to enhance ______ so that file
- pindex
- descriptors were reused as necessary to get around this.)
-
- Exercise caution in the use of ______'s output files in
- pindex
- environments where files are shared among machines (as with
- NFS). In the event that such machines have different byte
- orderings or their C compilers use different long int sizes,
- unexpected results may occur if the programs using the files
- are not prepared to compensate. Maybe someday I'll cook up
- an XDR version of this program, if I'm ever in the mood for
- some serious overkill.
-
-
-
- Page 2 (printed 7/16/91)
-
-
-
-
-
-
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
- pindex(1) UNIX System V pindex(1)
-
-
-
- AUTHOR
- AUTHOR
- AUTHOR
- AUTHOR
- Brian Rice.
-
- (Internet) ____@__-___.__.___
- rice dg rtp dg com
-
- (UUCP) ...!____!___!_____!____
- mcnc rti xyzzy rice
-
- (BITNET) ______@______
- BALOGA DRYCAS
-
- I would appreciate your notifying me of any bugs you
- discover.
-
- COPYRIGHT
- COPYRIGHT
- COPYRIGHT
- COPYRIGHT
- This program is in the public domain. Everyone may use it
- as he or she sees fit.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 7/16/91)
-
-
-
-
-