Yes, there is a stupid mistake in that script, last line should be: diff new_out1 new_out2 However, this is hopefully not important, what is important is the general kind of (very simple) things I'm trying to do.