Created
September 26, 2011 13:02
-
-
Save yuya-matsushima/1242185 to your computer and use it in GitHub Desktop.
ci_log.sedをtailで使う時のコマンド長いから短くするだけのスクリプト
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 | |
# ci_log.sedへのpathは環境に併せて修正 | |
if [ $# -eq 0 ];then | |
echo "Error: Please add 2 Parameters" | |
exit 1 | |
elif [ $# -eq 1 ];then | |
tail -f $1 | ~/Tools/ci_log.sed | |
exit 0 | |
else | |
tail -f -n $2 $1 | ~/Tools/ci_log.sed | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment