I want to write a shell script that distinguishes between two files and uploads the result to another file.
I find sdiff more intuitive than just diff . However, sdiff does not print line numbers where differences exist. I also tried vimdiff , which shows me line numbers, but I'm not sure how to dump the results to a file from a shell script.
So far this is what I use:
sdiff -s file1 file2
Is there any way to get side by side diff with line numbers?
jh314 source share