I have two files
$ cat file1.txt
UUXX:1
UUXX:2
$ cat file2.txt
UUXX:3
UUXX:1
I want to use this command
$ diff --old-group-format=$'\e[0;31m%<\e[0m' --new-group-format=$'\e[0;31m%>\e[0m' --unchanged-group-format=$'\e[0;32m%=\e[0m' file1.txt file2.txt
I got this output with UUXX:3 and UUXX:2 in red and UUXX:1 in green
UUXX:3
UUXX:1
UUXX:2
But I want to make them side by side like this, and keep the UUXX:3 and UUXX:2 in red and both UUXX:1 in green.
UUXX:1 UUXX:3
UUXX:2 UUXX:1
sdiffany help here?vim,vimdiffis a good choice-y,diff -y file1.txt file2.txt | colordiffdiffdo you have?