Skip to content

Instantly share code, notes, and snippets.

@wickywills
Created December 17, 2018 12:45
Show Gist options
  • Save wickywills/042a0f515bdf9424f8434806d67fe9f5 to your computer and use it in GitHub Desktop.
Save wickywills/042a0f515bdf9424f8434806d67fe9f5 to your computer and use it in GitHub Desktop.
Change the location to the access log as required, and also change `$5` (column) to the correct one for the date.
```
cat ~/logs/AccessLog | awk '$5 >= "[1/Dec/2018:10:00:00" && $5 < "[17/Dec/2018:13:00:00"'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment