in reply to How to grep for values & see the keys?

It's an FAQ! The first solution proposed there is pretty concise in terms of keystrokes, if that's what you really want.


🦛

  • Comment on Re: How to grep for values & see the keys?

Replies are listed 'Best First'.
Re^2: How to grep for values & see the keys?
by misterperl (Friar) on May 13, 2022 at 14:20 UTC
    Yes as I said there are many ways to do this in a while or for... That's what I was trying to avoid. But TYVM for your kind reply!

      Indeed - that's why I drew particular attention to the first solution in the FAQ which uses neither a while nor a for.


      🦛