How do I get the first 20 lines of a OS X Terminal result?
The command you want is head
so for a command x and the first 20 lines you enter
x | head -n 20
This runs x and pipes the input into the head command.
If the output is from a command you are running, you can pipe the output to the
$ ls -l | head -n 10