5

Grep multiple strings in multiple files

view full story
linux-howto

http://www.unix.com – Hi, every one! I have a file with multiple strings. file1 HTML Code: ATQRGNE ASQGVKFTE ASSQYRDRGGLET SPEQGARSDE ASSRDFTDT ASSYSGGYE ASSYTRLWNTGE ASQGHNTD PSLGGGNQPQH SLDRDSYNEQF I want to grep each string in hundreds of files in the same directory, further, I want to find out the string which occurs in more than 50 files. Can I use grep in awk to do that? I tried but fail to import each string into grep. Thanks in advance! (HowTos)