Friday, July 31, 2009

In UNIX, what command could join two content from different file together, and show the times of duplication?

for example, i have two file:





file A:


a


b


c


d


e


f


g


h








file B:


d


e


f


g


h


i





if i want to join the together and become file C, and show the times of the duplication, like:





file C:


a


b


c


d 2


e 2


f 2


g 2


h 2


i





what UNIX command should I use to combin two files together ,and show the times of duplication?.








Thank you very much, everybody.

In UNIX, what command could join two content from different file together, and show the times of duplication?
you should research the "awk" / "gawk" commands in unix. they can do this work. you may also need "sort"
Reply:I wrote an answer to this question, but then I saw all your other questions, and suspect that this is for an academic assignment. I feel strongly that people should do their own work, so I've deleted my answer.

mothers day cards

No comments:

Post a Comment