Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

   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.



Very 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:


Try indenting the code two or three spaces, and then it should be formatted without parsing *'s and so on.


Sweet. Thanks. I was only indenting by one space.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: