Files
misc/shell_scripts/logs_extract_last_month
Fabien Benetou 3f827825ca fixed year typo
2011-07-17 15:29:11 +02:00

4 lines
106 B
Bash
Executable File

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