by smith-kyle · 7y ago · 0 comments
Skimming The Grapes of Wrath would be shorter. Thank you, but no thank you.
https://www.tldp.org/LDP/abs/html/
(as a pdf: http://tldp.org/LDP/abs/abs-guide.pdf )
>file >fileLet me help you with this:
man -t bash > man.ps && lpr man.ps
Then, grab a coffee, sit in the sun and spent some quality time with your tools. :)It happened to me often enough that even when I knew what I wanted to achieve and which command X could do that I would first try to read darned man page and fail to find the solution, but then just googling gave enough of material to
a) have something to try
b) have a discussion of the cases where that "something" doesn't fulfill the use most use cases of those who asked (the "natural need") including, of course, the use case I've had.
I have a completely opposite attitude. Bash is horrible on many levels. Bash man page is only a part of horribleness.
The main problem for all man pages is that they are mostly as if written for those who already know about every unnecessary detail of both the tool in question and all related tools or environmental issues, but who searches for some even more obscure detail among all obscure details that they already know.
Not to mention the descriptions that aren't: e.g. the complete explanation of the option --frob-blonk FILE would be something like "this option uses the FILE as the frob blonk" oh, how helpful.
I use bash every day, but I've at least managed to reduce its use to the minimum that keeps me still sane.
When you don't know what to look for, it is not as simple as "looking something up".
(And I too actually consider awk much simpler than e.g. bash)
There are too many developers who rely only on Google/Stack Overflow to find and write answers to questions, and it's common to repeat bad, incomplete, or outdated information. I can think of a lot of times when the most accepted SO answer for many questions was "copy and paste this gigantic block of code" instead of using an existing command.
I'm sure even most of the readers here can't give a one line answer what is the "right" and "general" way to preset a darn variable for a shell. By design of all these artifacts we work with, it necessarily leads to a page-length discussion of which shells exist and what their differences are and whatnot. Such a waste of everybody's mental energy on a global level.
I'm happy to read more expansive pages in my own time but when I'm 'in the zone' as it were, the last thing I want to do is read through why something works. Perhaps it's a gap in the market? Or more likely I'm in the minority!
lpr <(man -t bash)
See: https://unix.stackexchange.com/a/64011 function pman() {
man -t ${1} | open -f -a /Applications/Preview.app
}It's actually 78 pages on my system (Debian, bash 4.4.12).
I've heard that OpenBSD has the best man pages that are more pleasant to read and more informative/concise.
https://www.facebook.com/permalink.php?story_fbid=2110408722...
† Anyone else here that remembers the days when man pages and Windows help files used to be referred to as online documentation? As opposed to printed manuals.
From `man wc`
WC(1) BSD General Commands Manual
WC(1)
NAME
wc -- word, line, character, and byte count
When in actuality `wc` outputs lines, words bytes ...IME it’s easier to focus when reading printed documentation. One can jot down notes and no temptation to go and reload Facebook/Twitter/etc. I haven’t done it often, but some commands are really worth knowing inside and out.
man --html=calibre bash sudo apt install -y bash-doc && lpr /usr/share/doc/bash-doc/bashref.pdf
178 pages of awesome.m, a Unix shell utility to save cleaned-up man pages as text:
https://jugad2.blogspot.com/2017/03/m-unix-shell-utility-to-...
Edit: Also check out the stuff about the word mu in the latter part of the post :)
:r !man bash | col -b
the col utility will strip backspace characters with the -b switch (along with reverse line feeds). export MANPAGER="/bin/sh -c \"col -b | vim -c 'set ft=man ts=8 nomod nolist nonu noma' -\""It uses col, but also redirects the cleaned-up output to a file named cmd.m (so you don't have to run that man command for the same command - like bash or other - each time), where cmd is the cmd you give to man as an arg. That file cmd.m is stored under your ~/man dir, which gets created first, with mkdir -p. More refinements possible, of course, but this was just a quick and dirty script I whipped up. For example, could check more for permission and other kinds of errors, not create the ~/man dir each time but only once, etc.
Learning the fundamentals of your tools is a...fundamental of doing this job. If you don't want to know how your tools work, I question one's competence or desire to do this job.
> If you don't want to know how your tools work, I question one's competence or desire to do this job.
I in turn question one's competence when, instead of getting the job done, hours upon hours are spent on irrelevant parts of configuration or getting some ideal solution to work where something less elegant would perfectly suffice. Unfortunately, the folks insisting on 'mastering' ones tools tend to often be in that category.
As an analogy: I don't care if the craftsmen that fixes my house uses his hammer holding it upside down. I only care that my house is properly fixed and stays so. How that was achieved, I could not care less about.
If one doesn't care that the carpenter building his house is using a hammer upside down, that's a whole 'nother bunch of issues I won't go into here.
An apt comparison might be Jimmy Hendrix playing a right-handed guitar left-handed (i.e. upside-down) and still producing master pieces.
I'd love to see at least a small allusion to what nature the issues are made of. Because, to iterate, I'd rather have a well-built house build by an absolutely unconventially working carpenter than a mediocre house build by someone that knows how to use a hammer according to the textbook.
If I want to see nice processes and fantasies fulfilled, I watch movies. In real life, I care about results.
~240 pages for man bash
Google says the grapes of wrath has 464 pages.
I call that a similar ballpark. If I had an English exam with Steinbeck as one of the set texts just once I would read every word of it. I have a shell exam every damn day I work rest and play. Do you? Is skimming seeming more reasonable in that light?