Created
December 13, 2011 22:08
-
-
Save tsykoduk/1474131 to your computer and use it in GitHub Desktop.
pull GET urls out of an apache log file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Use this script to pull just the POST URLs out of an apache log file | |
# Useful to replay traffic against test servers | |
cat $1 | tr -d - | cut -d\" -f2 | sed 's/GET //' | sed 's/ HTTP\/1.1//' | grep -v "POST" | grep -v '^$' >list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment