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