That returned 1 (one) which is what I have been getting with the various connotations I have been trying. I get either 1 or the whole file displayed.
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
grep a txt.txt -o |grep a -c
or use that if you don't like wc. Ok I'm a shoddy hacker... That really is ugly.
I misunderstood how -o and -c interact together in my first attempt...
Tim
