kinda like this that i just made up


alias -l finditem {
var -s %cur = 1, %tot = $ini($1,$2,0)
while (%cur <= %tot) {
var -s %data = $readini($1,$2,%cur)
if (%data == $3-) { return $ini($1,$2,%cur) }
inc %cur
}
return
}


but i was sure there was a built in, anyone know?