原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
#!/bin/bash | |
# 入力ファイルをTSVからCSV形式に変換する。ついでにヘッダの除去も行う | |
cat "$1" | tr -s ' ' | tr '\n' ',' | cut -d, -f2- | tr , '\n' | tr ' ' , | grep -v "^$" > tmp.input | |
# 1列目の項目を抜出し、キー1とする | |
cat tmp.input | cut -d, -f1 | sort -u > tmp.key1 | |
# 2列目の項目を抽出し、キー2とする | |
cat tmp.input | cut -d, -f2 | sort -u > tmp.key2 |
原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
#!/bin/bash | |
#filename cm.sh | |
#author:wumin | |
#---Date:2011.12.29 pm--- | |
#notice:not suport kind of ubuntu and debian system.(debian not suport /dev/tcp/host/port stye ) | |
usage() { | |
format_usage="Usage:\n |