I want to use linux diff command to get the following output:
2,4c2,4 I only want to know the line numbers where the files are different. I don't want the actual line on the console.
Eg:
If I will execute the following command: diff file1.txt file2.txt
I would like the following output:
2,4c2,4
I don't want the output:
2,4c2,4 < I need to run the laundry. < I need to wash the dog. < I need to get the car detailed. --- > I need to do the laundry. > I need to wash the car. > I need to get the dog detailed. I went through the manual of diff command but I wasn't able to find any option that would allow me to achieve what I want.