Files
misc/shell_scripts/logs_extract_last_month

4 lines
106 B
Plaintext
Raw Permalink Normal View History

2011-07-17 15:06:36 +02:00
#! /usr/bin/env bash
2011-07-17 15:29:11 +02:00
MONTH=`date +%Y-%m --date "a month ago"`
2011-07-17 15:06:36 +02:00
grep "^$MONTH-" \##pim.log > $MONTH-pim.log