Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • I'm sorry my sample data was insufficient. I have updated the original post with accurate samples. I am gather data with the program Grabserial, so there are timestamps from that, as well as timestamps from the unit I'm recording from. I think this would potentially cause an issue with this solution then? Commented Jun 22, 2022 at 15:33
  • 1
    @ditch I just ran my remove-dupes.pl script with your new sample data. Aside from some whitespace differences, the output was identical to your sample output. (confirmed with diff --ignore-space-change). The output from my script is indented more than your sample data and there's only a single space between each VAR [TF] pair....they're both fairly easy cosmetic fixes. Commented Jun 23, 2022 at 1:49