i don't know where else to turn to at this point, so i thought i'd turn to the helpful (and knowledgeable) anandtech community. my wife is taking a unix class (don't know why you need that for a PhD in Sociology) and she needs to figure out what command to use in order to count how many times a specific word appears in a file.
i guess the grep -c command is not what she needs, since that only counts how many lines the word appears in, as opposed to how many times the word appears in the file (i.e., accounting for multiple occurrences of a word within a single line). i've been all over the web with google trying to find an answer, with no luck. any thoughts guys and gals????
thanks in advance!
i guess the grep -c command is not what she needs, since that only counts how many lines the word appears in, as opposed to how many times the word appears in the file (i.e., accounting for multiple occurrences of a word within a single line). i've been all over the web with google trying to find an answer, with no luck. any thoughts guys and gals????
thanks in advance!
