On Mon, May 16, 2011 at 2:40 PM, David Brown
<david / westcontrol.removethisbit.com> wrote:
> On 16/05/2011 12:38, no.top.post / gmail.com wrote:
>>
>> awk&stuff can "give me the the Nth element",
>> but, without writing your own search-loop,
>> what can "give me the index of the 'element'
>> which is<elementValue>" ?
>>
>> I think it's called 'reverse indexing' ?

> Why not write your own loop? =A0Use your favourite scripting language. Yo=
u
> haven't described your problem very well, but my guess it is should be ea=
sy
> to do in a perl or python script (read in the file, put the data through
> lists, hashes/dicts, sorts, etc., as needed).
>
> I don't know enough about awk or ruby to say if they can handle it easily=
.

Now that I reread the original posting it seems grep family's option
-n does the job as well.  But I do agree, the problem description is
quite foggy.

Cheers

robert

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/