Unix diff to only print relevant diff
- by mkal
I have these two files
File:11
11
12345
File:22
123
456
Output of
diff 11 22
2c2
< 456123
---
> 789
Output to be
< 456123
> 789
I want it to not print 2c2 and "--" line. I looked at the man page but could not locate any help. Any ideas? The file has more than 1K lines