I have very long log files, is it possible to ask grep to only search the first 10 lines?
grep "pattern" <(head -n 10 filename)