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
Sorry, my bad. grep a txt.txt -o |wc My single test case indicates this works. eg a text file containing aa a
returns 3. Fine someone tell me this don't work either
