Nick Rout wrote:
$ wtf gnu
Gee...  I don't know what gnu means...
$ wtf fsf
Gee...  I don't know what fsf means...

I R'd TFM after installing the 'bsdgames' Debian package.

There are two acronym databases :-
/usr/share/games/bsdgames/acronyms default acronym database.
/usr/share/games/bsdgames/acronyms.comp computer-related acronym database.


Select the second one with 'wtf -t comp <term>'
$ /usr/games/wtf -t comp gnu
GNU: gnu's not unix

There is a total of 451 terms in both lists, and 7 duplicates. Two (RFC and TLB) are the same in both lists. There are no duplicates within a list. Oddly, if you create a list with duplicates in it, wtf seems to do pretty much the right thing.

[EMAIL PROTECTED]:/usr/share/games/bsdgames$ for i in $(cat acronyms* | sort | cut -f1 | uniq -d ); do grep "^$i[^A-Z]" acronyms*; done
acronyms:ATM at the moment
acronyms.comp:ATM asynchronous transfer mode
acronyms:IC I see
acronyms.comp:IC integrated circuit
acronyms:PNG persona non grata
acronyms.comp:PNG portable network graphics
acronyms:RFC request for comments
acronyms.comp:RFC request for comments
acronyms:SNMP sorry, not my problem
acronyms.comp:SNMP simple network management protocol
acronyms:TLA three letter acronym
acronyms.comp:TLA top level aggregator
acronyms:TLB translation lookaside buffer
acronyms.comp:TLB transition lookaside buffer


[EMAIL PROTECTED]:/usr/share/games/bsdgames$ cat acronyms* > /tmp/acro
[EMAIL PROTECTED]:/usr/share/games/bsdgames$ /usr/games/wtf -f /tmp/acro PNG
PNG: persona non grata
portable network graphics

Go figure.

-jim

Reply via email to