Ripped out file in/output, replaced with unix pipes.
Bail out early if search term is None.