grep - more examples [2]
 
 
finger | grep '[1-9]d’  to find the users currently logged on to the system who have been idle one or more days.
grep 'run[- ]time' ch04.txt to find in chapter 4 both “run-time” and “run time”
Note: it is best to enclose your regexp in single quotes