fork download
  1. #!/bin/bash
  2. s="02/01/2018 09:56:03 AM
  3. LogName=Security
  4. SourceName=Microsoft Windows security auditing.
  5. EventCode=4624
  6. EventType=0
  7. Type=Information
  8. ComputerName=COMPUTER1
  9. TaskCategory=Logon
  10. OpCode=Info
  11. RecordNumber=1072237543
  12. Keywords=Audit Success ..."
  13. echo "$s" | sed -E "/^Type=[[:alnum:]_]+$/!d"
Success #stdin #stdout 0s 4240KB
stdin
Standard input is empty
stdout
Type=Information