[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Remove duplicate lines
- Subject: Remove duplicate lines
- From: Harry Binswanger hb@xxxxxxxx
- Date: Wed, 01 Apr 2009 10:08:49 -0400
It's amazing what's already in Xy. I wrote a little routine to remove, from
a list, any duplicate lines. It has to call SORT, in order to get possible
duplicates next to each other. A couple of weeks after writing and
debugging it, I happened to check the Command Reference Guide for SORT
parameters, and waddya know--SORT by itself can remove duplicate lines! You
just add 4 to whatever number your default SK value is.
And the damn thing works, too.
Harry Binswanger
hb@xxxxxxxx