X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=logcat.sh;fp=logcat.sh;h=6668f231fb8d2c4d0911e13f4faf249ee92ec95f;hb=28ad0e52a815546012aad7b418e3b6a3f246540e;hp=0000000000000000000000000000000000000000;hpb=c265fc5891c549363a7101e70083caf0d3da48ba;p=logcat.git diff --git a/logcat.sh b/logcat.sh new file mode 100644 index 0000000..6668f23 --- /dev/null +++ b/logcat.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# logcat +# 指定したログを、logrotateした分も含めてすべて出力 +# +gunzip -c $1.[0-9]* | cat - $1.[0-9]* $1 | sort