$ 0 0 I want to find out how many times a word (say foo or an IP address) occurs in a text file using the grep command on Linux or Unix-like system?