Skip to content

Instantly share code, notes, and snippets.

@childnode
Created November 11, 2016 15:06
Show Gist options
  • Save childnode/da08e8a6f989ce0f94077ae1a6b1573b to your computer and use it in GitHub Desktop.
Save childnode/da08e8a6f989ce0f94077ae1a6b1573b to your computer and use it in GitHub Desktop.
cmp any but not cOmpany :D ... just pipe a list of files to it and it compares any to any ... using: cmp of course
function cmpany { i=(); while read x; do for j in ${i[@]}; do echo "$j vs. $x"; cmp $j $x; done; i+=("$x"); done; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment