We help IT Professionals succeed at work.

How to get unique count on first column in a csv file using powershell script

SURESH0518
SURESH0518 asked
on
4,970 Views
Last Modified: 2014-05-21
I have a csv file with  two columns orderid,price
order_id,price
10000,90.00
10000,91.00
10001,100.00

I need unique count of order_id using powershell script.
my output should be 2 since unique orders 10000,10001
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Raheman M. AbdulMessaging and Directory Services
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I have csv file is 25 MB and when I apply it takes sometime and can I make it faster
CERTIFIED EXPERT
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.