fork 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 | grep -oE '\[[0-9]{2}/[A-Za-z0-9]{3}/[0-9]{4}|key=[A-Za-z0-9]+' | sed ':a;N;$!ba;s/\n/ /g'
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
[31/Jan/2017 key=sEahu58asdasd