Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 29, 2016 14:42
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 zoffixznet/47164b976de32a0b6a05 to your computer and use it in GitHub Desktop.
Save zoffixznet/47164b976de32a0b6a05 to your computer and use it in GitHub Desktop.
Header:
IP: 198.0.1.22
Login: suser
Time: 1454017107
Resource: /report/accounting/x23gs
Operation:
Resource: /report/accounting/x23gs
Input: x=42,y=32
Output: success
Header:
IP: 198.0.1.23
Login: nanom
Time: 1454027106
Resource: /report/systems/boot
Operation:
Resource: /report/systems/boot
Input: mode=standard
Output: success
for 'report.txt'.IO.lines».indent(4).rotor( 4 => -1, 3 => 1 ).rotor(2) -> $p {
.say for "Header:", |$p[0],
"Operation:", |$p[1], '';
}
IP: 198.0.1.22
Login: suser
Time: 1454017107
Resource: /report/accounting/x23gs
Input: x=42,y=32
Output: success
===================================================
IP: 198.0.1.23
Login: nanom
Time: 1454027106
Resource: /report/systems/boot
Input: mode=standard
Output: success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment