change tmp files to bash stream