How to count how many times @ occurs in a txt file (Linux command line)?

apple guava

New member
As title thanks.

I have a .txt file full of email addresses and other texts. I'd like to know how many times @ occurred in this text file. How do I do this in Linux (Ubuntu) commandline please?

Thank you.
 
Back
Top