Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open VMS Equivalent to UNIQ -c in UNIX

Status
Not open for further replies.

pavithra123

IS-IT--Management
Jun 17, 2001
54
CZ
Hi All,

Is there an Equivalent command OPen VMS command to UINQ -c as in UNIX.

If theres not then How do make a count of duplicate lines in a file in OPEN VMS

The lines in the file are mostly numbers, For instance in file of 10,000 lines there are 1000 lines of 9715, In unix I used to do this cut -c <from the position where 9715 starts sort them and use uniq -c

fileinput cut -c1-3 | sort | uniq -c to give me a count of numbers which has 9715 or whatever it is.

How do I do it in VMS, Instead of cut I can use f$extract, But my problelm is getting a count

Any help/suggestion is highly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top