04-27-2011
2,
0
Join Date: Apr 2011
Last Activity: 27 April 2011, 7:34 AM EDT
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
Should be the simplest thing in the world grep
should be the simplest thing in the world use grep
but i not get it
i have several files, in this files i need to khow how many times the words are repeated but the files must star whit P_
this work
egrep -c "word1|word2" *P_*
result:
P_11351814:1
P_11351823:3
P_11351826:1
P_11351842:5
but how to add the results? to get 10....