misc/shell_scripts/logs_extract_last_month

3 lines
106 B

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