Skip to content

Instantly share code, notes, and snippets.

@rupertbates
Created July 11, 2013 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rupertbates/5976914 to your computer and use it in GitHub Desktop.
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
sed 's_.*clientIp\":\"\([^\"]*\)\".*dt\"\:\"\([^\"]*\)\".*_\2 \1_'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment