tac: use only one temporary file, with multiple nonseekable inputs