added command line script for filtering multiple files