Operations notes

Compare two files and get only the difference

# Using the `diff` tool
diff -a --suppress-common-lines -y a.txt b.txt > c.txt

# Using the `comm` tool
comm -2 -3 <(sort a.txt) <(sort b.txt)

Source: https://stackoverflow.com/questions/4544709.

This entry was posted in Posts, SoftwareEngineering. Bookmark the permalink.