exec sort_file.js NONE 1.1
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv6840
Added Files:
sort_file.js
Log Message:
This is a script that can sort a file. This script is meant to be run with jsexec (on the OS command prompt, not via the Synchronet terminal server). One purpose of this script is to sort dictionary files when they're created or when words are added to existing dictionary files.
The command-line syntax of this script is:
sexec sort_file.js <inputFilename> <outputFilename> [convertToLowercase] Where <inputFilename> is the name of the input file and <outputFilename> is the name of the output file (the sorted input). convertToLowercase is optional, and specifies whether or not to convert all entries in the file to lower-case (which is required for case-insensitive word matching via SlyEdit, for instance). The values for convertToLowercase can be true or false (really, anything besides true will be interpreted as false).
exec sort_file.js 1.1 1.2
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv19900
Modified Files:
sort_file.js
Log Message:
Don't allow duplicates in the sorted output
Modified Files:
sort_file.js
Log Message:
Don't allow duplicates in the sorted output
There's a common utility/command for this too, it's 'uniq' (or sort -u).
Re: exec/sort_file.js
By: Digital Man to nightfox on Fri May 24 2019 11:46 pm
Modified Files:
sort_file.js
Log Message:
Don't allow duplicates in the sorted output
There's a common utility/command for this too, it's 'uniq' (or sort -u).
I'm running my BBS in Windows 7, and it doesn't seem to have a uniq utility. Also, I looked at the help for sort, and I don't see a -u (or /u) option.
Sysop: | BrokenMind |
---|---|
Location: | Central Pennsylvania United States |
Users: | 60 |
Nodes: | 4 (0 / 4) |
Uptime: | 17:33:38 |
Calls: | 175 |
Files: | 2,017 |
Messages: | 20,380 |