diff command and saving results to a file