pavithra123
IS-IT--Management
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.
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.