HP3000-L Archives

November 2004, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Knight, Sam" <[log in to unmask]>
Reply To:
Knight, Sam
Date:
Tue, 2 Nov 2004 08:10:42 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (59 lines)
There is a program from the contributed library named
FILECKD that does this.


***************************************************** 
Sam Knight                Phone: (904)256-7509 
Sr. Programmer/Analyst      Fax: (904)256-7238 
Jacksonville University     Web: <http://www.ju.edu/> 
Jacksonville, FL 32211 

"The more technology you have out there, 
the more things that can break" Max Everette 

NOTICE: This communication may contain privileged or 
other confidential information. If you are not the 
intended recipient or believe that you may have 
received this communication in error, please reply 
to the sender indicating that fact and delete the 
copy you received. In addition, you should not print, 
copy, retransmit, disseminate, or otherwise use the 
information. 


-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
Behalf Of Nigel Skeet
Sent: Tuesday, November 02, 2004 06:58
To: [log in to unmask]
Subject: [HP3000-L] Removing duplicate lines from file


Hi all,

Brain isn't in gear today. What's the easiest way of removing duplicate
lines from a standard ASCII file ? File is sorted but looks like.

Line 1
Line 1
Line 2
Line 3
Line 4
Line 4

etc..... But I want to remove any duplicate lines.

Can't think this morning unless I knock something up in JCL to read the
input of each line then read the next line compare the 2 and if different
post to another file....

TIA

Nige...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2