Change stdin behaviour like bzip2 or gzip