lsrtnt 3.50 Sort Filter for Microsoft Windows (C) Copyright 1993-2007 Norm London, London Computing User Supported Software. All rights reserved. If this program proves useful, please make a contribution ($20 suggested) to: London Computing, P.O. Box 696 Cherry Hill, NJ 08003 or visit our website at http://www.londoncomuting.com You may make copies of this software and distribute to other users as long as there is no charge or other consideration and this notice is not removed or bypassed. Questions or Comments-- send to londoncomputing@abac.com Registered users may embed lsrtnt in applications which may be sold as long as London Computing is credited as the source of the sort/merge routines. LSRTNT3.50: . Now supports multiple threads. (Requires -t flag) . Now supports stable sorts. (Requires -S flag) LSRTNT 3.16 Added the ability to sort delimited files. Set the delimiter by adding the -d="x" flag, where x is the delimiter character. Use \t for tabs, \xxx for decimal character xxx. LSRTNT 3.12 The current version has added: -B flag for Batch processing. Causes LSRTNT to run without stopping for error messages or low RAM. -Q flag for Quiet processing. Allows LSRTNT to run without typing copyright notices, etc. LSRTNT 3.11 The current version has added the ability to sort delimited fields and to ignore case during compares. ---------------------------- WHAT is LSRTNT: LSRTNT is a replacement for the SORT command. It will sort any files that contain only character fields and fit in memory. Run LSRTNT with no parameters to see help and licensing information. LSRT is shareware, copyright LONDON Computing,1992, 1996, 1999, 2000, 2007. All rights reserved. Microsoft Windows is a registered trademark of Microsoft Corporation. Usage is: lsrtnt [flags] s1 l1 [t1] o1 [... s326 l32 [t32] o32] -or- lsrtnt [flags] -d[=xx] f1 [s1 [l1]] [t1] o1 [... f32 [s32 [l32]] [t32] o32]] f1 -- field number (Delimited Records Only, from 1) s1 -- field start (from 1) -- optional for delimited files. If specified for a delimited file, specifies the start of the sort field relative to the start of the field. For non delimited files, specifies the start of the sort field relative to the start of the record. l1 -- field length, the size of the sort field. It is optional for delimited files. If specified for a delimited file, the field start is required. t1 -- field type. This is optional for both delimited and non delimited files. Valid values for t1 are: C -- Character Field. Fields are compared one character at a time. U -- case insensitive character field N -- Numeric field. A numeric field may be a positive or negative integer or real number. Real numbers may contain E notation. B -- Byte fields. Fields are compared one byte at a time. Y--YMD Date. The following formats are allowed: YYDDD (Year + Day of Year), YYYYDDD (Year + Day of Year), YYMMDD (Year Month Day), YYYYMMDD (Year Month Day), YY.MM.DD, YY-MM-DD, YY/MM/DD (Year Month Day), YYYY.MM.DD, YYYY-MM-DD, YYYY/MM/DD (Year Month Day), YY fields area translated into years using the rule of 30: 0<=YY<=30 is assumed to be 20YY, YY>30 is assumed to be 19YY If the file uses delimiters, you can mix any of the above formats, otherwise all dates must be in the same format. M--MDY Date or Month Name, depending on the data in the field. If the field begins with a A-Z or a-z, assume a Month Name. Remove trailing blanks. If the data length is less than or equal to the length of a month name, the data field will be compared (using a case insensitive compare) to the month name If there is an exact match for the number of charcters in the field, the data will be ordered as follows: January, February, March, April, May, June, July, August, September, October, November, December If no match is found, the field will sort higher than December. If the field does not start with a letter, it is assumed to be and MDY date. The following formats are supported: MMDDYY (Month Day Year), MMDDYYYY (Month Day Year), MM.DD.YY, MM-DD-YY, MM/DD/YY (Month Day Year), MM.DD.YYYY, MM-DD-YYYY, MM/DD/YYYY (Year Month Day), YY fields area translated into years using the rule of 30: If the file uses delimiters, you can mix any of the above formats, otherwise all dates must be in the same format. 0<=YY<=30 is assumed to be 20YY, YY>30 is assumed to be 19YY If the field is not in one of the above formats it will sort high. D--DMY Date or Day of Week, depending on size of field. If the field begins with a A-Z or a-z, assume a Day Name. Remove trailing blanks. If the data length is less than or equal to the length of a day name, the data field will be compared (using a case insensitive compare) to the month name If there is an exact match for the number of charcters in the field, the data will be ordered as follows: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday If no match is found, the field will sort higher than Saturday. If the field does not start with a letter, it is addumed to be a DMY date. The following DMY date formats are supported: DDMMYY (Month Day Year), DDMMYYYY (Month Day Year), DD.MM.YY, DD-MM-YY, DD/MM/YY (Month Day Year), DD.MM.YYYY, DD-MM-YYYY, DD/MM/YYYY (Year Month Day), YY fields area translated into years using the rule of 30: If the file uses delimiters, you can mix any of the above formats, otherwise all dates must be in the same format. 0<=YY<=30 is assumed to be 20YY, YY>30 is assumed to be 19YY If no match is found, the field will be sort high. If the field type is omitted, type C is assumed. o1 -- Sort order: A(scending),D(escending) flags: -d="x". Delimited records where x is delimiter, e.g. -d="," Enter \t for tab, \n for linefeed, \r for return, \xxx for character xxx (decimal). Delimiter characters are ignored within quoted strings. Either single or double quotes may be used. -d Delimited records where tab is the delimiter. -b Batch mode. Don't prompt. -q Quiet mode. No gratuitous messages. -U Ignore case during compares. Applies to Character fields only. -s Force a STABLE sort. A stable sort will keep equal fields in the order in which they appeared in the input. This technique requires more memory and is slightly slower. May not be used with -t. -t Use multiple threads when sorting. LSRTNT will use a Quick Sort instead of a Heap sort. May not be used with -s. -v Verbose mode. -iinfile Name of input file. If not specified, input from standard input. Redirection is supported. -ooutfile Name of output file. If not specified, output to standard output Redirection is supported. lsrtnt requires System Memory of 512KB or more! Sorts any text file that fits in memory.