in reply to Re: Grep 1st word of strings in array
in thread Grep 1st word of strings in array

I may have misunderstood the OP's intent. But it appears to me that a simple regex to get the first "word" after the ">" is all that is required.
  • Comment on Re^2: Grep 1st word of strings in array

Replies are listed 'Best First'.
Re^3: Grep 1st word of strings in array
by kcott (Archbishop) on Mar 07, 2012 at 18:00 UTC

    You could be right. Some sample input and expected output would be helpful.

    -- Ken