Unix diff to only print relevant diff
Posted
by mkal
on Stack Overflow
See other posts from Stack Overflow
or by mkal
Published on 2010-05-01T08:33:47Z
Indexed on
2010/05/01
8:37 UTC
Read the original article
Hit count: 575
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
© Stack Overflow or respective owner