Forum Moderators: open
grep '\<ht\>' /path/to/daves/logs the "\<" and "\>" specify that you're searching for a word that starts and ends there respectively. Of course, if this is really the full UA in an extended standard log file, then including the double quotes in the pattern as well might give even better results:
grep '"ht"' /path/to/daves/logs Note that you need single quotes around the full pattern in both cases, so that the shell doesn't eat the <, >, or ".