Skip to content

Instantly share code, notes, and snippets.

@albertmeronyo
Last active August 29, 2015 14:15
Show Gist options
  • Save albertmeronyo/c67c27b19f20d22400b1 to your computer and use it in GitHub Desktop.
Save albertmeronyo/c67c27b19f20d22400b1 to your computer and use it in GitHub Desktop.
CLOD clusters
# Matching namespace index
for e in `cat nsCounts/402ecd52d22d648c48e28bfc59901b78 | cut -f1`; do grep -n -e "^$e$" totalNamespaces; done | cut -d":" -f1
# All documents namespace indexes
for d in `ls nsCounts`; do NS=$d; for e in `cat nsCounts/$d | cut -f1`; do NS=$NS,`grep -n -e "^$e$" totalNamespaces | cut -d":" -f1`; done; echo $NS >> nsPointers; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment