Timeline for How to grep number of occurence of two different words in a file on Linux?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 16, 2017 at 13:41 | comment | added | mchid | @McNisse Actually, you do because grep will only count line occurrences and there may be more than one occurrence of a word in a line. | |
| Jan 9, 2013 at 11:35 | comment | added | McNisse |
You don't need to wc -l. grep -c gives the count directly.
|
|
| Jan 9, 2013 at 10:46 | history | edited | dchirikov | CC BY-SA 3.0 |
edited body
|
| Jan 9, 2013 at 10:39 | history | answered | dchirikov | CC BY-SA 3.0 |