Is there a way to make grep output \"words\" from files that match the search expression?
If I want to find all the instances of, say, \"th\" in a number of files, I
You could translate spaces to newlines and then grep, e.g.:
cat * | tr ' ' '\n' | grep th