in reply to Re^2: Select only desired features from a text
in thread Select only desired features from a text

Use a second hash to store those (partial) lines that you've already seen, and only print out those lines that aren't in the hash yet.

  • Comment on Re^3: Select only desired features from a text