I have very long log files, is it possible to ask grep to only search the first 10 lines?
You can use the following line:
head -n 10 /path/to/file | grep [...]