home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
wp_dtp
/
ghostscr.lha
/
bin
/
uniq.rexx
Wrap
OS/2 REXX Batch file
|
1993-01-10
|
388b
|
26 lines
/* uniq:
* read standard input and process arguments to standard output. Ignore
* multiple occurences of the same string appearing in sequence.
*
* Example:
* file foo: contains:
* dog
* dog
* cat
*
* rx uniq < foo produces:
* dog
* cat
*/
lastarg = ""
parse pull arg
do while arg ~= ""
if arg ~= lastarg then
say arg
lastarg = arg
parse pull arg
end