home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
pln101.zip
/
PLN.DOC
< prev
next >
Wrap
Text File
|
1994-09-15
|
2KB
|
63 lines
PLN v1.01 (formerly LINEN5)
DOS utility: number text file lines sequentially
Freeware, copyright (c) 1994 [94/09/15]
by
David Daniel Anderson
Reign Ware
** READ REIGNWAR.TXT FOR LEGAL MUMBO JUMBO **
PLN inserts sequential 6-digit numbers at the beginning of each line of a
text file, to prepare it for printing or sorting. PLN can also remove
these line numbers, simply by adding a switch to the command line.
The line numbers start at 1. A colon and space is first appended to the
number string, and then the string is right-justified within an eight
character wide column (ie. " 79: This is the seventy-ninth line.").
Usage: PLN infile outfile [/r (remove numbers)]
Where: infile = name of the input file*. No wildcards allowed. Required.
outfile = name of the output file*. No wildcards allowed. Required.
/r = switch to force PLN to remove the numbers which it had
previously added to the front of the lines. Optional.
* The infile must already exist, and the outfile must NOT exist.
Examples: PLN trek.txt trek.prn
PLN pln.src pln.pas /r
Note: Lines must not exceed 247 characters before the numbers are added.
This is a fundamental limitation of Pascal, and I cannot work around it.
Characters beyond 247 will be lost.
CAUTION: Before deleting the "infile", make sure the output file was created
EXACTLY as expected. If PLN comes across unexpected input, it will erase
the outfile, and then abort. Deleting the infile would leave NO files!
WARNING: If you used LINEN5 in the past, please note that batch files and
aliases will most likely have to be revised to account for the new wider
line number format!
** READ REIGNWAR.TXT FOR LEGAL MUMBO JUMBO **
{------------------------------------------------------------------------------
REVISION HISTORY
v1.00 : 1993/07/14. First public release. DDA
v1.01 : 1994/09/15. Improved efficiency, speed, documentation, help screen
and error handling. Renamed from LINEN5 to PLN. DDA
------------------------------------------------------------------------------}