Working with substitute sed with diff and patch tools