Skip to content

Instantly share code, notes, and snippets.

@jessejajit
Created August 23, 2012 01:16
Show Gist options
  • Select an option

  • Save jessejajit/3431045 to your computer and use it in GitHub Desktop.

Select an option

Save jessejajit/3431045 to your computer and use it in GitHub Desktop.
#!/bin/sh
YEAR=`date -d 'yesterday' +%Y`
MONTH=`date -d 'yesterday' +%m`
DAY=`date -d 'yesterday' +%d`
#DAY=19
echo grep -B2 -A3 contains /vol/syslog/HOSTS/db-*/$YEAR/$MONTH/$DAY/local3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment