From a8d9f4ef4009cdc9d5b13ef0dd7d27c6bbb5a438 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Mon, 15 Oct 2012 11:12:15 +0900 Subject: [PATCH 1/1] =?utf8?q?=E3=83=AD=E3=82=B0=E8=A1=A8=E7=A4=BA?= =?utf8?q?=E7=94=A8=E3=83=A6=E3=83=BC=E3=83=86=E3=82=A3=E3=83=AA=E3=83=86?= =?utf8?q?=E3=82=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit logcat: 指定したログをlogrotateした分も含めてすべて出力する dpkg-history: dpkgによるINSTALL/REMOVE/UPGRADE/PURGEの履歴を表示する --- dpkg-history | 7 +++++++ logcat | 5 +++++ 2 files changed, 12 insertions(+) create mode 100755 dpkg-history create mode 100755 logcat diff --git a/dpkg-history b/dpkg-history new file mode 100755 index 0000000..f620034 --- /dev/null +++ b/dpkg-history @@ -0,0 +1,7 @@ +#!/bin/sh +# +# dpkg-history +# dpkgによるINSTALL/REMOVE/UPGRADE/PURGEの履歴を表示する +# 依存: logcat +# +logcat /var/log/dpkg.log | grep '^[12][09][0-9][0-9]-[01][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(install\)\|\(remove\)\|\(upgrade\)\|\(purge\) ' diff --git a/logcat b/logcat new file mode 100755 index 0000000..e9e5ed6 --- /dev/null +++ b/logcat @@ -0,0 +1,5 @@ +#!/bin/sh +# logcat +# 指定したログを、logrotateした分も含めてすべて出力 +# +gunzip $1.[0-9]* | cat - $1.[0-9]* $1 | sort -- 2.18.0