Tuesday, August 3, 2010

diff print only unmatched lines

To print only unmatched lines from file2:


$ diff file1 file2 | grep ">" | awk -F '>' '{print $2}'

No comments:

Post a Comment