This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ue | |
echo -n '' > /tmp/tmp.extensions.list | |
if [[ ${#} -ne 1 ]]; then | |
echo 'Usage:' | |
echo '$ bash listing_all_file_extensions.sh /path/to/directory' | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# wait_by_read_with_while_loop.txt | |
# one | |
# two | |
# three | |
# four | |
# five | |
set -ue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 下記,よくできた bash マニュアルだと思っていたら,JP1/Advanced Shell というもののマニュアルだった... bash のマニュアルを確認していないので以下はデタラメかもです. | |
# | |
# 参考 | |
# | |
# getoptコマンド(コマンドラインのオプションを解析する) : JP1/Advanced Shell http://itdoc.hitachi.co.jp/manuals/3021/3021313330/JPAS0337.HTM | |
# 形式1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# CACHE CLUSTER ID | |
# | |
PRI_CACHE_CLUSTER_ID=ec-test-pri | |
REP_CACHE_CLUSTER_ID=ec-test-rep | |
# | |
# REPLICATION GROUP ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# CACHE CLUSTER ID | |
# | |
PRI_CACHE_CLUSTER_ID=ec-test-pri | |
REP_CACHE_CLUSTER_ID=ec-test-rep | |
# | |
# REPLICATION GROUP ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check number of variables. | |
if [ $# != 1 ] | |
then | |
echo 'Usage:' | |
echo './start_instances.sh servers.list' | |
exit 255 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check number of variables. | |
if [ $# != 1 ] | |
then | |
echo 'Usage:' | |
echo './start_instances.sh servers.list' | |
exit 255 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum install -y gcc | |
wget http://download.redis.io/releases/redis-2.8.6.tar.gz | |
tar xzf redis-2.8.6.tar.gz | |
cd redis-2.8.6 | |
make | |
sudo cp ./src/redis-server /usr/local/bin/ | |
sudo cp ./src/redis-cli /usr/local/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Variables | |
# | |
MAIL_ADDRESS="[email protected]" | |
MAIL_SUBJECT='Redis Backup ends with No Error.' | |
ALERT_MAIL_ADDRESS="[email protected]" | |
ALERT_MAIL_SUBJECT='Redis Backup ends with Some Error!!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# ---------------------------------------------------------------------- | |
# Variables | |
# ---------------------------------------------------------------------- | |
# | |
# | |
# Retention Period of mysqldump files. |
NewerOlder