[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
off-topic: Conversion multi-line diff to single-line
From: |
Werner LEMBERG |
Subject: |
off-topic: Conversion multi-line diff to single-line |
Date: |
Mon, 29 Aug 2011 07:39:21 +0200 (CEST) |
Folks,
I have an off-topic question, and maybe you can help. Is there a
program or script which converts the multiline chunks of diff (without
-u or -c) into single-line chunks? This is, I want to have this
XXX
< foo1
< foo2
< foo3
---
> bar1
> bar2
> bar3
converted into
XXX
< foo1
---
> bar1
YYY
< foo2
---
> bar2
ZZZ
> foo3
---
< bar3
Such an output greatly simplifies comparison of large sorted word
lists with sparse or systematic insertions, deletions, or changes.
Werner
- off-topic: Conversion multi-line diff to single-line,
Werner LEMBERG <=