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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove and merge duplicates

Status
Not open for further replies.

amdx64bt

Technical User
Mar 30, 2009
9
CH
Hello, I am new to learning awk. I have this input and I would like to obtain this output. How I can resolve it?

Input:
lastname firstname geneABC232 geneB12 geneG33
Smith John 1 0 0
Smith John 0 1 0
Smith John 0 1 1
Smith John 0 0 1
Cage Alfred 1 0 0
Cage Alfred 1 1 0
Cage Alfred 0 0 0

Output:
lastname firstname geneABC232 geneB12 geneG33
Smith John 1 1 1
Cage Alfred 1 1 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top