bash: create diff patch pair