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*

4
  • the command works awesome!! can you please explain the code if possible..what are variables :p,v and purpose of 1 at the end.Is it for checking the odd lines? Commented May 1, 2014 at 14:29
  • 1
    @Ron . Good to hear :) I added an explanation, hope it helps.. Commented May 1, 2014 at 16:51
  • Quick question: which line specifies that "from=name" has changed,and it should not change the first alternate line of that,instead store it to compare with the alternate lines of that particular "from=name". Commented May 1, 2014 at 19:23
  • @Ron . from=name is the second field so that would be if(p!=$2) { it changes the first field or all grouped alternate lines with that particular from=name Commented May 1, 2014 at 19:39