Record filtering command line tool