Chris Downie wrote:
Hi,

I have a text file that I need to count exactly how many times a particular character appears. Can someone offer me the correct grep syntax to achieve this?

Cheers,
Chris


grep a .xinitrc -o -c
seems to count how many a's in my .xinitrc file...
-c == count
-o == only the part of the line that matches

Reply via email to