Mimic: < file1 cmd1 | cmd2 > file2