title: TCL delete duplicate lines by 3 different pattern matching
body: <p>I'm a beginner in programming TCL and want to delete lines from an input file matching </p>
  
  <ol>
  <li>exactly the same line content</li>
  <li>pattern: <code>"ghi\/\njkl\/\nrccu1" -&gt; "Point \.*: 10 Sinks" \.*</code>
  (number behind word "Point" and content behind "<code>[color.*</code>" can be different - all other need to match exactly)</li>
  <li><code>"mno\/\npqr\/\nrccu1" -&gt; "stu\/\nvwx\/\nrccu1" [label = "depth: 1"] [color=salmon] [fontcolor=salmon] [style=solid];</code>
  (number behind word "Point" and content behind "<code>[color.*</code>" can be different - all other need to match exactly)</li>
  </ol>
  
  <p>Now I have following input file</p>
  
  <pre>
  "abc\/\ndef\/\nrccu1" [shape=octagon,color=red,style=filled];
  "abc\/\ndef\/\nrccu1" [shape=octagon,color=red,style=filled];
  
  "ghi\/\njkl\/\nrccu1" -> "Point 1: 10 Sinks" [color=salmon] [style=solid] [weight=8];
  "123\/\n456\/\nrccu1" -> "Point 9: 10 Sinks" [color=grey] [style=solid] [weight=8];
  "ghi\/\njkl\/\nrccu1" -> "Point 8: 10 Sinks" [color=grey] [style=solid] [weight=8];
  "ghi\/\njkl\/\nrccu1" -> "Point 13: 20 Sinks" [color=grey] [style=solid] [weight=8];
  
  "mno\/\npqr\/\nrccu1" -> "stu\/\nvwx\/\nrccu1" [label = "depth: 1"] [color=salmon] [fontcolor=salmon] [style=solid];
  "mno\/\npqr\/\nrccu1" -> "stu\/\nvwx\/\nrccu1" [label = "depth: 4"] [color=salmon] [fontcolor=salmon] [style=solid];
  
  "mno\/\npqr\/\nrccu1" -> "stu\/\nvwx\/\nrccu1" [label = "depth: 1"] [color=grey] [fontcolor=red] [style=solid];
  </pre>
  
  <p>Output file should contain:</p>
  
  <pre>
  "abc\/\ndef\/\nrccu1" [shape=octagon,color=red,style=filled];
  
  "ghi\/\njkl\/\nrccu1" -> "Point 1: 10 Sinks" [color=salmon] [style=solid] [weight=8];
  "123\/\n456\/\nrccu1" -> "Point 9: 10 Sinks" [color=grey] [style=solid] [weight=8];
  "ghi\/\njkl\/\nrccu1" -> "Point 13: 20 Sinks" [color=grey] [style=solid] [weight=8];
  
  "mno\/\npqr\/\nrccu1" -> "stu\/\nvwx\/\nrccu1" [label = "depth: 1"] [color=salmon] [fontcolor=salmon] [style=solid];
  "mno\/\npqr\/\nrccu1" -> "stu\/\nvwx\/\nrccu1" [label = "depth: 4"] [color=salmon] [fontcolor=salmon] [style=solid];
  </pre>