segunda-feira, novembro 06, 2006

Dump RFC'S to the Console..

O ports (misc/rfc) é mais um daqueles port's
que ninguém acha que existe, mas quando
descobre que existe fica viciado :-)

Ele faz exatamente o que se propõem a fazer, realiza
busca por RFC'S trazendo o resultado para o seu console.

Para instalar:

( cd /usr/ports/misc/rfc; make install )

ou

pkg_add -vr rfc

Para usar:

1 - Atualize o Index.

[ricardo@ricardo(10:20am)] ~# rfc -i
Modem users one moment, it's about 400k (doesn't need to be updated often)
original lines = 17731 /usr/local/etc/rfc-index
new lines = 17731 /usr/local/etc/rfc-index

2 - Faça busca por string.

[ricardo@ricardo(10:28am)] ~# rfc -s OGG
The Result:
0056 Third Level Protocol: Logger Protocol. E. Belove, D. Black, R.
Flegal, L.G. Farquar. June 1970. (Format: TXT=13066 bytes) (Status:
UNKNOWN)
0079 Logger Protocol error. E. Meyer. November 1970. (Format: TXT=1515
bytes) (Status: UNKNOWN)
0098 Logger Protocol Proposal. E. Meyer, T. Skinner. February 1971.
(Format: TXT=24536 bytes) (Updated by RFC0123) (Status: UNKNOWN)
0466 Telnet logger/server for host LL-67. J.M. Winett. February 1973.
(Format: TXT=17595 bytes) (Status: UNKNOWN)
3533 The Ogg Encapsulation Format Version 0. S. Pfeiffer. May 2003.
(Format: TXT=32045 bytes) (Status: INFORMATIONAL)
3534 The application/ogg Media Type. L. Walleij. May 2003. (Format:
TXT=10013 bytes) (Status: PROPOSED STANDARD)

3 - Leia a RFC.

[ricardo@ricardo(10:29am)] ~# rfc -o 3533 | head -n20
Dumping... rfc3533.txt
as ASCII to STDOUT

Network Working Group S. Pfeiffer
Request for Comments: 3533 CSIRO
Category: Informational May 2003


The Ogg Encapsulation Format Version 0

Status of this Memo

This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.



Simplesmente perfeito!!