awk '
  # ignore lines with "none:" or "player:" in $(NF-2)
  $(NF-2) ~ /^(none|player):$/ { 
    next   # read next line
  }

  { 
    # remove dots from $2 in every line
    gsub(/\./,"",$2) 
  }

  /\|Hitem:/ {
    # if it has "|Hitem:" in $2, remove everything
    # before and after the colons
    sub(/.+\|Hitem:/,"",$2)
    sub(/:.+/,"",$2)
    print $2,$(NF-2)
    next   # read next line
  }

  {
    print $2,$(NF-2)
  }
' your_file.txt


Line 380 has Selected player:  (GUID: 6873)]. You have to decide what to do with such lines (ignore them? print the GUID instead?).

Parsing a Text to only see specific data
I have reputation 521, I can edit question and answer but not a comment. There is very helpful, but mistyped comment. Only one letter need to be changed. Should I flag it? I have no right do anything else.

Let us see the example:

There is a question:
Where is @Html.MailTo in MVC 4?

And the most usefull part of the answer for me is the comment: "marked up with a helper attribute e.g. [DataType(DataTypes.EmailAddress)]"

But it should be DataType.EmailAddress instead of DataTypes.EmailAddress.

I would like to delete the mistyped s, but I cannot. What should I do?
