fork download
  1. #!/bin/bash
  2. s="02.04.2001 ERROR (User1) Server can't start"
  3. echo $s | sed -r 's/^[^[:space:]]+[[:blank:]]+ERROR[[:blank:]]+\([^()]*\)(.*)/ERROR\1/g'
Success #stdin #stdout 0.01s 19632KB
stdin
Standard input is empty
stdout
ERROR Server can't start