tail an input source and batch together similar lines