LOOK(1plan9)
π LOOK(1plan9) π
okay bestie, so this is look from the Plan 9 manual, section 1, and it's literally the most underrated lil tool. it finds lines in a sorted list. that's it. that's the whole vibe. π
β¨ NAME β¨
look β find lines in a sorted list π
πΈ SYNOPSIS πΈ
look [ -dfnixtc ] [ string ] [ file ]
π DESCRIPTION π
so look walks up to a sorted file and prints every single line that begins with string. and the way it does it? binary search. no cap, it's fast, it's elegant, it's giving main character energy. β¨
here's the options it recognizes, and heads up β the options dfnt affect comparisons exactly the same way they do in sort(1), iykyk. π«Ά
-iβ Interactive. there's no string argument at all; insteadlooktakes lines from the standard input and treats each one as a string to be looked up. so you just keep feeding it vibes. π-xβ Exact. print only the lines of the file whose key matches string exactly. no fuzzy matching, no extras, just precision. π-dβ `Directory' order: only letters, digits, tabs and blanks participate in comparisons. everything else is lowkey ignored. π-fβ Fold. upper case letters compare equal to lower case. soAandaare besties now. π-nβ Numeric comparison with an initial string of digits, optional minus sign, and optional decimal point. numbers getting the respect they deserve. π₯-t[c]β character c terminates the sort key in the file. by default, tab terminates the key. if c is missing, the entire line comprises the key. that's the whole line, bestie, no crumbs. π
and if you don't specify a file? look just assumes /lib/words, with collating sequence df. iconic default behavior honestly. π
π¦ FILES π¦
/lib/words
π SOURCE π
/src/cmd/look.c
π SEE ALSO π
β DIAGNOSTICS β
listen up, this part matters! π
the exit status is not found''</red> if no match is found, and <red>no dictionary'' if file or the default dictionary cannot be opened. so if things go quiet, check your exit status, bestie. π
and that's the whole page!! πΈ this was LOOK(1plan9) from the Plan 9 manual, section 1 β mwah, slay, periodt. πβ¨π¦
π¦ where this page comes from
- debian bookworm: 9base 1:6-13 Β· Lucent
- debian trixie: 9base 1:6-14 Β· Lucent
- ubuntu jammy: 9base 1:6-11 Β· Lucent
- ubuntu noble: 9base 1:6-14 Β· Lucent
- ubuntu questing: 9base 1:6-15
- ubuntu resolute: 9base 1:6-15build1 Β· Lucent
- ubuntu stonking: 9base 1:6-15build1 Β· Lucent
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms