Created
December 2, 2010 21:15
-
-
Save jney/726080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # compare 2 files, each line is trim, empty lines are removed, lines are sorted | |
| diff <(cat file1.txt | awk '{gsub(/^ +| +$/,"")}1' | grep -v '^\s*$' | sort) \ | |
| <(cat file2.txt | awk '{gsub(/^ +| +$/,"")}1' | grep -v '^\s*$' | sort) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment