adding more related logs scripts

This commit is contained in:
Fabien Benetou
2011-07-17 15:06:36 +02:00
parent 96ca35b735
commit 1ba101d86b
2 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#! /usr/bin/env bash
MONTH=`date +%m --date "a month ago"`
grep "^$MONTH-" \##pim.log > $MONTH-pim.log

View File

@@ -0,0 +1,2 @@
#! /usr/bin/env bash
wc -l 20{09,10,11}-* | grep -v total | sed "s/ 2010.*//" | sed "s/ 2009.*//" | sed "s/ 2011.*//" > monthly_lines.data