Created
July 11, 2013 16:21
-
-
Save rupertbates/5976914 to your computer and use it in GitHub Desktop.
Use sed to print the client IP and date time stamp from each line of an Ophan 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
sed 's_.*clientIp\":\"\([^\"]*\)\".*dt\"\:\"\([^\"]*\)\".*_\2 \1_' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment