Hi,
I'm trying to use `diff` to make a list of comparisons.
test.txt looks like:
...and test2.txt, looks like:
The desired output (so I can process it via a perl script, and put each side into "table cells".
The kinda thing I'm trying to end up with, is:
Now, doing something like:
..but I really need something easier to work with - so maybe something like:
(i.e something seperating the lines, even when they are the same)
Anyone got any suggestions? I've been searching high and low all day for this kinda thing - and still no nearer, so thought I'd post here, to pick the minds of experts =)
TIA
Andy
I'm trying to use `diff` to make a list of comparisons.
test.txt looks like:
Code:
my test bla bla
sdfsdfsdf
and some line spacfffes
...and test2.txt, looks like:
Code:
my test bla bla
some extra content
sadfsdfsdf
and some line spaces
The desired output (so I can process it via a perl script, and put each side into "table cells".
The kinda thing I'm trying to end up with, is:
Now, doing something like:
Code:
user@server test $ diff -y test.txt test2.txt
my test bla bla my test bla bla
sdfsdfsdf | some extra content
and some line spacfffes | sadfsdfsdf
>
> and some line spaces
..but I really need something easier to work with - so maybe something like:
Code:
user@server test $ diff -y test.txt test2.txt
my test bla bla : my test bla bla
sdfsdfsdf | some extra content
and some line spacfffes | sadfsdfsdf
>
> and some line spaces
(i.e something seperating the lines, even when they are the same)
Anyone got any suggestions? I've been searching high and low all day for this kinda thing - and still no nearer, so thought I'd post here, to pick the minds of experts =)
TIA
Andy