Fun at zangOOr Click Here
2 like 0 dislike
16 views
in Education & Reference by (1.4k points)

how to remove duplicate entries on a single column and get all corresponding column values using AWK

my data input

100 test
100 test
200 cool
300 bold
300 bold
 

need below output

100 test
200 cool
300 bold

1 Answer

0 like 0 dislike
by (3.3k points)
 
Best answer
awk -F'\t' '!a[$1]++ {print $1,$2}' filename

Related questions

1 like 0 dislike
1 answer 99 views
1 like 0 dislike
1 answer 76 views
0 like 0 dislike
1 answer 84 views
0 like 0 dislike
1 answer 200 views
2 like 0 dislike
1 answer 82 views
0 like 0 dislike
1 answer 89 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

...