You can grep your command history easily. This helps when trying to find your historical commands that match a pattern instead of just dumping the whole history.
history | grep <your-pattern>
You can still control number of lines to grep across
history -20 | grep <your-pattern>