Re: Posix Pangrams (#97)

This quiz extends the idea to the posix utilities[1]
[snip]
[1] 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

On 10/6/06, Gavin K. [email protected] wrote:

This quiz extends the idea to the posix utilities[1]
[snip]
[1] 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’))
puts (doc/“p.tent/i”).map{|i|i.inner_html}

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

Thanks Why!

  • Jamie

On 10/6/06, Gavin K. [email protected] 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 :wink:

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