home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 6 File
/
06-File.zip
/
unique2.zip
/
UNIQUE.DOC
next >
Wrap
Text File
|
1995-09-26
|
3KB
|
68 lines
Hi Ho.
It's me again.
Unique for OS/2 V1.0.
by Stu Mark. 9/26/95
You can get in touch with me at nyti: 914-368-2819.
Description:
------------
I spend a lot of my time nowadays, hand pushing around a lot of text data.
So I write utilities to help me. One of the most annoying things about lists
is duplicates. Why process something 10 times when you only have to process
it once? Because you don't have an easy way of getting rid of duplicates.
So I wrote unique. It can sit right next to grep, sort and tail. It can
be passed a parameter filename to process, or it can be used in a pipe (it
will read from stdin if not passed a filename).
The catch is, the file has to be sorted, I.E. it only removes adjacent
duplicates. But hey, it's better than nothing. If you need to sort a big
file, may I suggest SPFPC. I know. Mainframes suck, but frankly, the pc
version works better than the mf version, it's got a great virtual memory
manager, and can sort a really really huge file, unlike the sort pipe.
To use it just type Unique and the filename: Unique text.fil
Output goes to stdout.
Another way to use it: dir | unique
This will take the output of the dir command and run it through the
unique program. But if you don't know that by now, you have no use for
this program. But I appreciate you reading my wonderful literary works.
Known Bugs:
-----------
This isn't exactly a bug, it's a misowner (my own word). Since unique has
to read in 2 lines to compare them, if you accidently run unique with no
params, you have to hit ctrl-z twice to get out of it.
Unknown Bugs:
-------------
I don't know of any.
GNU:
----
I don't like the GNU people because one of them took my friend's program,
changed all the copyright info, and put it up under GNU licensing under his
own name. This is a poor example of the GNU concept, morals of some excuses
for people, and people who should not call themselves programmers.
For this reason, I do not ship source. But I leave the debugging info in.
Lie of the day:
---------------
For those of you real creative hackers out there, there's a full 32 bit PM
version of Space Invaders embedded in Unique's executable. I left the
debugging info in, and it's a great help towards unlocking the startup
program to it, so you can play this wonderful game. It's got multiplayer mode
so you can play against or with another person over modem or network.
Have Fun.
Endnote:
--------
If you have any ideas of stuff to change, add, or whatever. Give nyti a
ring or email me at Stu Mark@nyti.uncnsrd.org
Coming Soon:
------------
The New York Telescheduler V2.0
(Version 1.0, 1.1 and 1.2 were never released, so don't feel bad that you
missed anything.)