Skip to content

Instantly share code, notes, and snippets.

@sheeplogh
Created August 22, 2012 02:06
Show Gist options
  • Save sheeplogh/3421464 to your computer and use it in GitHub Desktop.
Save sheeplogh/3421464 to your computer and use it in GitHub Desktop.
grep an accesslog(apache) file within a specific time period
$ cat ACCESS_LOG | awk '$4 >= "[29/Jan/2012:12:00:00" && $4 < "[29/Jan/2012:13:00:00"'
@ericsonrumuy7
Copy link

i think that script not valid because the weight of days is larger then weight of years and month

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment