(Possibly relevant to @b0rk 's interests)
So I hit a flag in diff, --unchanged-group-format
. It does not show up in the manpage. It does not show up in --help. You can search both those channels for that string and you will not find it.
You know where it shows up first? If you Google it, you'll get an example in https://www.gnu.org/software/diffutils/manual/html_node/Line-Group-Formats.html.
So why doesn't it show up in the manpage? Well, it does! If you read the entire manpage. With your eyes.
-D, --ifdef=NAME output merged file with '#ifdef NAME' diffs
--GTYPE-group-format=GFMT format GTYPE input groups with GFMT
--line-format=LFMT format all input lines with LFMT
--LTYPE-line-format=LFMT format LTYPE input lines with LFMT
These format options provide fine-grained control over the output
of diff, generalizing -D/--ifdef.
LTYPE is 'old', 'new', or 'unchanged'. GTYPE is LTYPE or 'changed'.
"What do you mean it isn't documented? Of course it's documented. You did read every line and do some template-substitution in your brain, didn't you?"
This isn't advocating for not reading the manpage. If you really want to understand how the tool works, you read the whole manpage. And probably the source code.
... but I don't want to understand how the tool works. I want to diff two files and not have the lines that are the same get emitted.
And I think a lot of application- and solution-generating computer people, most of the time, in most of their careers, are operating on that level of depth. Problems come in too fast and with too much variety. You absolutely go deep on some things. There is no time to go deep on everything.
So how do we address this (other than throw up our hands and say "Relying on Google's fuzzy search of the whole Internet and vibe-coding LLMs is the future actually")? I don't have magic bullets, but a "fuzzy search" mode in something like less
that could take an input like --unchanged-group-format
and twig that it if there's no exact match, it might be related to --GTYPE-group-format
would be nice.
Maybe I should mock that up in emacs. Actually, I bet someone already put it in emacs. ;)
https://www.europesays.com/1999148/ Air New Zealand expects at least $50m less in compensation for engine troubles; United Airlines says economy ‘impossible to predict’ #£50m #air #Airlines #at #compensation #Economy #engine #expects #for #from #gets #impossible #in #later #least #less #manufacturers #new #NewZealand #predict #says #this #TO #troubles #United #year #zealand
I wonder if there are any alternative pagers out there besides less.
There are loads and loads of editors and #terminal emulators, but not so many pagers.
The best supermarket wines for under six euros in Spain https://www.diningandcooking.com/1965176/the-best-supermarket-wines-for-under-six-euros-in-spain/ #best #euros #for #less #six #SpanishWine #supermarket #than #the #Wine #wines
Just lovely warm glow of the #Moon's orb, backlighting the silhouetted blades of a few #tree #leaves, against a #black #nightsky. Stunning minimalist composition shows us how very much #less can be.
#MoonPhoto retooted from Murray GM - Paperposts (@Paperposts). [Is it "missed-it" or "miss-edit"?]
https://zirk.us/@Paperposts/112850424397769561 25 Jul 2024
Elon Musk’s charity may bear his name, but it can’t seem to match his penchant for high-dollar spending.
According to a New York Times analysis of his charity’s giving in 2022, the #Musk #Foundation gave out just $160 million in grants
—a whopping $234 million #less #than the five-percent #legal #minimum it needed to distribute between 2021 and 2022.
It was the fourth-largest shortfall of any U.S. charity in 2022, the last year for which records are available.
The revelation was one of multiple in the Times’ report on Musk’s charitable giving, which has often benefited his own associates or those of his companies.
Musk reportedly filled some of the foundation’s coffers by donating Tesla stock, which he is allowed to claim as a tax deduction.
Not all of the charity’s donations have benefited his own interests, however:
The foundation donated more than $1 million to schools in Flint, Michigan, and a charity aimed at helping children there.
But where that foundation donates is still up to him and the foundation’s board—which includes just him and two other volunteers.
Which is your favourite?
#Photo #Photography #Snow #2021 #Yorkshire #Landscape #Snowodon #Minimal #Swan #Marcescence
@OldAndCranky A great New Year's resolution.
#Less social media.
@cogdog sent me here. #Google, Are You Sure No #Country in #Africa Starts With a ‘K’? The world’s favorite #searchengine is becoming #less #dependable as a result of generative #AI. https://archive.ph/7PGMJ#selection-681.0-695.92
Wow, after 25 years of Unix experience, I learned that you can filter output in #less.
Press ampersand (&) and enter a regex to show only lines matching the regex.
Press ampersand (&) and then exclamation mark (!) to apply an inverse filter.
Wow, after 25 years of Unix experience, I learned that you can filter output in #less.
Press ampersand (&) and enter a regex to show only lines matching the regex.
Press ampersand (&) and then exclamation mark (!) to apply an inverse filter.