Skip to content

Instantly share code, notes, and snippets.

@ser1zw
Created April 5, 2014 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ser1zw/9990540 to your computer and use it in GitHub Desktop.
Save ser1zw/9990540 to your computer and use it in GitHub Desktop.
for f1 in `ls * | sort`; do for f2 in `ls * | grep -v $f1`; do echo $f1 $f2; done; done | awk '{if(TABLE[$1$2]!=1&&TABLE[$2$1]!=1) { TABLE[$1$2]=1; TABLE[$2$1]=1; print $0} }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment