# Re: Posix Pangrams (#97)

**URL:** <https://www.ruby-forum.com/t/re-posix-pangrams-97/71288>\
**Category:** Ruby\
**Created:** [October 6, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/re-posix-pangrams-97/71288 "2006-10-06T18:34:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [October 6, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/re-posix-pangrams-97/71288/1 "2006-10-06T18:34:39Z")

</div>

> This quiz extends the idea to the posix utilities[1]  
> [snip]  
> [1] [http://www.unix.org/version3/apis/cu.html](http://www.unix.org/version3/apis/cu.html) has a complete list

Assuming it’s not a spoiler, following is the contents of the first  
column of the table at that URL. (There’s no joy in trying to  
parse/string HTML.)

admin alias ar asa at awk basename batch bc bg c99 cal cat cd cflow  
chgrp chmod chown cksum cmp comm command compress cp crontab csplit  
ctags cut cxref date dd delta df diff dirname du echo ed env ex expand  
expr false fc fg file find fold fort77 fuser gencat get getconf getopts  
grep hash head iconv id ipcrm ipcs jobs join kill lex link ln locale  
localedef logger logname lp ls m4 mailx make man mesg mkdir mkfifo more  
mv newgrp nice nl nm nohup od paste patch pathchk pax pr printf prs ps  
pwd qalter qdel qhold qmove qmsg qrerun qrls qselect qsig qstat qsub  
read renice rm rmdel rmdir sact sccs sed sh sleep sort split strings  
strip stty tabs tail talk tee test time touch tput tr true tsort tty  
type ulimit umask unalias uname uncompress unexpand unget uniq unlink  
uucp uudecode uuencode uustat uux val vi wait wc what who write xargs  
yacc zcat

---

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [October 6, 2006, 6:52pm UTC](https://www.ruby-forum.com/t/re-posix-pangrams-97/71288/2 "2006-10-06T18:52:42Z")

</div>

On 10/6/06, Gavin K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > This quiz extends the idea to the posix utilities[1]  
> > [snip]  
> > [1] [http://www.unix.org/version3/apis/cu.html](http://www.unix.org/version3/apis/cu.html) has a complete list
> 
> Assuming it’s not a spoiler, following is the contents of the first  
> column of the table at that URL. (There’s no joy in trying to  
> parse/string HTML.)

Sure there is.

require ‘rubygems’; require ‘hpricot’; require ‘open-uri’  
doc = Hpricot(open(‘[http://www.unix.org/version3/apis/cu.html](http://www.unix.org/version3/apis/cu.html)’))  
puts (doc/“p.tent/i”).map{|i|i.inner\_html}

Hpricot makes HTML scraping fun again (no, really!).

Thanks Why!

- Jamie

---

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [October 6, 2006, 8:21pm UTC](https://www.ruby-forum.com/t/re-posix-pangrams-97/71288/3 "2006-10-06T20:21:20Z")

</div>

On 10/6/06, Gavin K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > This quiz extends the idea to the posix utilities[1]  
> > [

Well Gavin, thanx a lot  
Thoughtful of you very useful for those who just want to have fun with  
the  
Quiz!!!  
And to the others DRY, Gavin has done it already 😉

Cheers  
Robert

–  
Deux choses sont infinies : l’univers et la bÃªtise humaine ; en ce qui  
concerne l’univers, je n’en ai pas acquis la certitude absolue.

- Albert Einstein
