fork(1) download
  1. #!/bin/bash
  2. s='52.200.238.131 - - [31/Jan/2017:10:30:21 +0000] "POST /v1/articles?key=sEahu58asdasd'
  3. echo $s | sed -E 's#.*(\[[0-9]{2}/[A-Za-z0-9]{3}/[0-9]{4}).*(key=[A-Za-z0-9]+).*#\2 \1#'
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
key=sEahu58asdasd [31/Jan/2017