Found this particularly interesting -- look peforms a binary search. If you're looking specifically for lines with a prefix in pre-sorted data, it'll perform much better than grep. Assuming you have the RAM to hold the file.
Today in "Obscure Unix Utilities That I've Discovered By Accident", look(1): https://man.openbsd.org/look
“Hey I’m wondering if you can take a break from this critical incident to fix the CEO’s printer”
SRE. open source operating system enthusiast. hiker and climber.
constantly distro-hopping and trying new display environments. i can't stop. help.
currently: openbsd and cwm
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!