Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: [QUIZ] Posix Pangrams (#97
Gavin Kistner
10/6/2006 4:33:00 PM
> This quiz extends the idea to the posix utilities[1]
[snip]
> [1]
http://www.unix.org/version3/ap...
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
1 Answer
Jamie Macey
10/6/2006 4:51:00 PM
0
On 10/6/06, Gavin Kistner <gavin.kistner@anark.com> wrote:
> > This quiz extends the idea to the posix utilities[1]
> [snip]
> > [1]
http://www.unix.org/version3/ap...
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/ap...
'))
puts (doc/"p.tent/i").map{|i|i.inner_html}
Hpricot makes HTML scraping fun again (no, really!).
Thanks Why!
- Jamie
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: [QUIZ] Posix Pangrams (#97
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password