3 ms·
Not an IDE user but in textmode I really like using GNU diff -y for a variety of file comparison tasks. There is no word-wrap and it is readable on smaller scr
by 1vuio0pswjnm7 5y ago
Not an IDE user but in textmode I really like using GNU diff -y for a variety of file comparison tasks. There is no word-wrap and it is readable on smaller screens.
For example, I can dump two files to single column hex using od and then do diff -y to find the bytes that differ. A nice complement to cmp -b.
test $# = 2||exec echo usage: $0 file1 file2\; for small files
od -An -tx1 -vw1 < $1 > $1.hex
od -An -tx1 -vw1 < $2 > $2.hex
diff -y $1.hex $2.hex|tr '\11' '\40'|sed '/[<>|]/s/ / /g'|less -Jj5 -NGp "[<>|]"
exec rm $1.hex $2.hex