That project is a symptom of manual pages not having good “EXAMPLES” sections. The examples on that web page should be contributed upstream to the manuals pages of the software that they are for.
If you want a fast way to read the EXAMPLES section only for a command, here is a shell function which creates an ‘eg’ command which only displays the “EXAMPLES” section of manual pages:
eg(){
MAN_KEEP_FORMATTING=1 man "$@" 2>/dev/null \
| sed --quiet --expression='/^E\(\x08.\)X\(\x08.\)\?A\(\x08.\)\?M\(\x08.\)\?P\(\x08.\)\?L\(\x08.\)\?E/{:a;p;n;/^[^ ]/q;ba}' \
| ${MANPAGER:-${PAGER:-pager -s}}
}
Usage:
$ eg tar
EXAMPLES
Create archive.tar from files foo and bar.
tar -cf archive.tar foo bar
List all files in archive.tar verbosely.
tar -tvf archive.tar
Extract all files from archive.tar.
tar -xf archive.tar
$
Can you give me an example? What I’d do it look at the Debian package, which both documents where upstream is and has a bugtracker of its own which you can submit suggestions to, and the Debian maintainer should forward the submission to upstream if appropriate.
hostname -i on cb.vu says the IP address is 78.31.70.238, but if you ping a host from the interface, the pings originate from 178.33.34.4 (according to tcpdump).
41 comments
[ 3.1 ms ] story [ 13.2 ms ] threadhttp://www.brendangregg.com/USEmethod/use-rosetta.html
It was posted elsewhere in this thread first — https://news.ycombinator.com/item?id=10023535 — so don't vote my comment up.
There are so many times I do searches on HN to recall about some nice things I've seen oh the web... Quite often, the comments are the gems!
https://github.com/jlevy/the-art-of-command-line | https://www.bento.io/grid | https://www.sqlteaching.com/
[0] https://gist.github.com/vmsp/38b9a891c76a2fc5c3b5
[1] https://gist.github.com/vmsp/5cbfa1b4ccd9f78f56c7
If you want a fast way to read the EXAMPLES section only for a command, here is a shell function which creates an ‘eg’ command which only displays the “EXAMPLES” section of manual pages:
Usage:Could anyone contribute a version for OSX?
It also has a terminal client called "fu": https://github.com/samirahmed/fu
Is this due to an LB fronting?
A different (but related) resource: http://explainshell.com - good for deciphering those tricker commands.
You probably meant lower :)