Skip to content

Instantly share code, notes, and snippets.

@ericchen
Last active August 29, 2015 14:08
Show Gist options
  • Save ericchen/f7e5cfe58e119d6b5fa1 to your computer and use it in GitHub Desktop.
Save ericchen/f7e5cfe58e119d6b5fa1 to your computer and use it in GitHub Desktop.
比较2个文件内容的不同

比较2个文件内容的不同行数

sort file1 file2 | uniq -u > file3

查找文件中的重复行

cat file | sort | uniq -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment