Skip to main content
3 of 3
edited tags
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

How to grep number of occurence of two different words in a file on Linux?

How to grep number of occurrence of two different words e.g. 'register' and 'evn' in a file on Linux ?

The output should be like following:

registered:20
Supriya
  • 31
  • 1
  • 2