Skip to content

Instantly share code, notes, and snippets.

@yuya-matsushima
Created September 26, 2011 13:02
Show Gist options
  • Save yuya-matsushima/1242185 to your computer and use it in GitHub Desktop.
Save yuya-matsushima/1242185 to your computer and use it in GitHub Desktop.
ci_log.sedをtailで使う時のコマンド長いから短くするだけのスクリプト
#!/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