I have very long log files, is it possible to ask grep to only search the first 10 lines?
grep -A 10
This is to grab the pattern and the next 10 lines after the pattern. This would work well only for a known pattern, if you don't have a known pattern use the "head" suggestions.