grep -r "pattern" /path/to/dir | head -n 20