Skip to content

Instantly share code, notes, and snippets.

@falsecz
Created September 4, 2015 12:03
Show Gist options
  • Save falsecz/fb9d60a7775f9399ab03 to your computer and use it in GitHub Desktop.
Save falsecz/fb9d60a7775f9399ab03 to your computer and use it in GitHub Desktop.
merge hbase regions
pbpaste | awk '{print $1}' | awk -F. '{print $2}' | grep -v "^$" | awk 'NR%2{printf $0" ";next;}1' | awk '{print "merge_region \x27"$1"\x27, \x27"$2"\x27"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment