3 ms·
curl -s http://www.gnu.org/software/coreutils/manual/coreutils.html | sed '/<li>.*-inv.*p>:.*[^>]<.a>/!d;s/.*#//;s/-inv.*:/:/;s/<.a>//' |sort "A long, long
by doggonematte 14y ago
curl -s http://www.gnu.org/software/coreutils/manual/coreutils.html
| sed '/<li>.*-inv.*p>:.*[^>]<.a>/!d;s/.*#//;s/-inv.*:/:/;s/<.a>//'
|sort
"A long, long time ago when I was <em>mastering</em> Linux..." [emphasis mine]
I am an amateur, and still learning, so what do I know? But I fail to see any evidence of "mastery" here.
And where's the cheat sheet for the binutils?
Are they not important?
Edit: Added more indentation to protect Kleene stars.
- dbaupp 14y agoTry indenting the code two or three spaces, and then it should be formatted without parsing *'s and so on.
- doggonematte 14y agoSweet. Thanks. I was only indenting by one space.
- pixelbeat 14y agoVery nice! Note if you put the | at the end of the line the whole command is copy and pasteable. Also you could pipe to `column -t -s:` to align nicely Also you can download the 57K index rather than the 1.3M manual to get the command list. curl -s http://www.gnu.org/software/coreutils/manual/html_node/index.html | sed '/<li>.*-inv.*p>:.*[^>]<.a>/!d;s/.*#//;s/-inv.*:/:/;s/<.a>//' | sort | column -t -s: