How to display line numbers in side by side diff in unix?
Below code can be used to display the uncommon fields in two files, side by side. sdiff -l file1 file2 | cat -n | grep -v -e ‘($’ Below code will display common fields along with line numbers in the output. diff -y file1 file2 | cat -n | grep -v -e ‘($’