[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] unique
From: |
Val Krem |
Subject: |
[Help-bash] unique |
Date: |
Sat, 23 Apr 2016 19:20:46 +0000 (UTC) |
Hi all,
I have a file with several variables. Sample of data is below.
I want to count the unique occurrence of Name (column 1) in column 2(V1) and
columns 3(V2).
Name v1 v2
ABX123 12 125
ABX123 12 135
ABX123 13 113
AcX222 12 225
AcX222 12 235
AcX222 13 213
AcX222 13 313
AcX222 14 413
AdX222 14 512
The output should like
ABX123 2 3
AcX123 2 5
AdX222 1 1
I may do it in several steps. I am just wondering if there an efficient way of
doing it.
Thank you in advance
- [Help-bash] unique,
Val Krem <=