Use grep with the -w flag.