home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
norge.freeshell.org (192.94.73.8)
/
192.94.73.8.tar
/
192.94.73.8
/
pub
/
computers
/
pcjr
/
arc
/
PAKUTL12.LZH
/
PAKSORT.DOC
< prev
next >
Wrap
Text File
|
1988-09-09
|
5KB
|
124 lines
PAKSORT v1.1
9 September 1988
Michael J. Housky and Jeffrey J. Nonken
Copyright 1988 by Michael J. Housky and Jeffrey J. Nonken.
Released to the public domain September 1988. No rights reserved.
PAKSORT will sort the members of one or more archive files, such
as those produced by the Phil Katz's utilities PKPAK and PKPAKJR.
It will also list archive files produced by newer versions of
ARC.EXE, or so we believe. For each archive matching a given file
specification, PAKSORT sorts the members as specified in the
command line. The sorted result replaces the original archive
file.
Usage:
PAKSORT filespec [order]
The filespec may include a drive and path. The characters * and ?
may be used as wildcards in the filename and extension, with the
* matching zero or more characters, and the ? matching one
character. If no filetype extension is given, a default filetype
of .PAK is assumed.
The order is one or more two-character sort criteria. Each of
these consists of a letter identifying a sort field, followed by
a plus(+) for ascending sort order or minus(-) for descending
sort order. The sort criteria must be entered consecutively
without intervening blanks. Sort field letters are:
F -- sort by "filename.ext" member name
N -- sort by "filename" only.
X -- sort by ".ext" only.
D -- sort by date of last update.
T -- sort by time of last update.
S -- sort by (original) file size.
Multiple criteria are entered in order of decreasing importance,
so that "D+T+" means sort primarily by date (older to newer) and
then by time (earlier to later) when dates are equal. If no sort
order is specified, then "D+T+F+" is assumed as a default.
One minor note: The "F" field is sorts by the compacted
"name.ext" (without imbedded blanks) as stored in the archive
headers and as normally typed at the console. No priority or
division is given to the "." in this case. When member names
contain characters less than "." in the ASCII collating sequence,
or nonstandard names are encountered in the archive, the results
may be slightly different from sorting by name then by extension.
Normally, this will difference will not be important.
PAKSORT v1.1 page 1
A typical example may look like this:
D>PAKSORT BBSLIST X-N+
PAKSORT v1.0
Searching: BBSMOVE.PAK
Copying: BBSMOVE.EXE - loc=4871 len=25442
Copying: BBSMOVE.DOC - loc=0 len=4871
Technical note: The sort process is performed "safely" by
completely producing the sorted archive file under the name
"PAKSRTMP.$$$" on the same drive:path as the unsorted original.
The original is then deleted and the temporay file renamed to
replace the original. This means that the destination disk must
have enough free space for a complete copy of the original, and
that the destination directory must have room for one new entry.
This second point will not normally be a problem except in the
case of a completely full root directory.
The purpose of this program is to principally to allow use of
PKPAK with Fido-Net archived mail. Normally, PKPAK keeps an
archive sorted by member name, but many mail processing programs
presume that the members are stored in the order added, as with
the ARC.EXE program. For systems which use the ARCA and ARCE
programs (like Opus-CBCS), "front-end" programs (PAKAS/PAKSE) are
included which will "shell" to PKPAK/PKUNPAK and then "shell" to
PAKSORT to sort the result in chronological order ("D+T+F+".)
The reason for the unusual default of ".PAK" as a filetype
extension is due to Mike Housky, who is trying to ignite a grass-
roots standard for identifying archives produced by the
techically superior PKWARE Inc. utilites, and incompatible with
the ARC program distributed by SEA.
PKPAK, PKUNPAK and PKPAKJR are trademarks of PKWARE, Inc. and
Phil Katz.
ARC and SEA are trademarks of Software Enhancement Associates,
Inc.
Opus-CBCS is probably a trademark of Wynn Wagner III, and the
reference herein is intended to be "Lawful and Friendly."
PAKSORT v1.1 page 2