Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

find duplicate string in many different files

$
0
0
I have more than 100 files like this:

HTML Code:

SVEAVLTGPYGYT        2       
SVEGNFEETQY        10       
SVELGQGYEQY        28       
SVERTGTGYT        6       
SVGLADYNEQF        21       
SVGQGYEQY        32       
SVKTVLGYEQF        2       
SVNNEQF              12       
SVRDGLTNSPLH        3       
SVRRDREGLEQF        11       
SVRTSGSYEQY        17       
SVSVSGSPLQETQY        78       
SVVHSTSPEAF    59
SVVPGNGYT        75       

There is a string in $1 and its frequency in $2.
I have two questions. How can I merge these file into one file, which include all the string in $1 and each frequency in different fields?

How can I find the same string included in the 100 files, and output its each frequency?

I can do this using awk between two files, but failed to deal with so many.

Thank you!

Viewing all articles
Browse latest Browse all 16232

Trending Articles