I would like to search 14 different patterns within 100 files. At the moment what I tried cat s_3_2_*_qseq.txt | grep  -c  'pattern1\|pattern2\|pattern3\|pattern4\|pattern5\|...pattern14'This gives me the no of all pattern in each file     s_3_3_001_qseq.txt:12    s_3_3_002_qseq.txt:15    .    s_3_3_0068_qseq.txt:5I am interested to see results for each pattern indivually as follwing: file                  pattern1   pattern2   .....   pattern14s_3_3_001_qseq.txt:    0         2                  5s_3_3_002_qseq.txt:    7         1                  3..s_3_3_0068_qseq.txt:   1         2                  1Any idea how can I do it, unix, perl or python solution would be nice.
How can I get the seprate results for each pattern from multiple grep
grep