🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #7924

Re: Diccionario RAE on-line

#7924
From: J.A. Gutierrez
Date: Mon, 20 Jan 2003 13:07
34 lines
2168 bytes
Oscar <lucense@hotmail.com> wrote:
: Mejor aun:


: lynx -crawl -dump \
: "http://buscon.rae.es/draeI/SrvltGUIBusUsual?LEMA=$1&TIPO_HTML=2&FORMATO=DRAE" |\
: grep -v Todos\ los\ derechos\ reservados | grep -v THE_URL | grep -v THE_TITLE |\
: grep -v mostrar\ formato\ ampliado

	por lo general, una cadena de greps se puede simplificar a
	egrep -e 'asdf|foo|bar'

	Aparte de eso, propongo:

---------------------------------------------------------------------------
#!/bin/sh

lynx -crawl -dump \
"http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2&LEMA=$1&FORMATO=DRAE" |\
sed -ne "/^[ ]*$1\./,/^[ ]*$/"'{ s/[ ]*||[ ]*/\
\
    * /g; s/\~/'"$1"'/g; p;}' |\
/usr/local/bin/par |\
recode -f UTF-8..ISO-8859-1

---------------------------------------------------------------------------



-- 
PGP and other useless info at      \
http://www.cps.unizar.es/~spd/      \
finger://daphne.cps.unizar.es/spd    \       Timeo Danaos et dona ferentes
ftp://ivo.cps.unizar.es/pub/          \                         (Virgilio)   
Technical Details
Message-ID: <b0gsa8$9mt$1@news.unizar.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!central.cox.net!cox.net!nntp2.aus1.giganews.com!nntp.giganews.com!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news.telia-iberia.com!news.rediris.es!news.unizar.es!not-for-mail
References: <slrnb2je1r.2k2.reinoso@EA4BAO.PLLANO.ESP.EU> <7ae3d00c.0301182333.2daf522e@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f86c8,d6e0e5fad9e0be51
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-01-20 04:25:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!central.cox.net!cox.net!nntp2.aus1.giganews.com!nntp.giganews.com!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news.telia-iberia.com!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Diccionario RAE on-line
Date: 20 Jan 2003 13:07:20 GMT
Organization: Rank
Lines: 34
Message-ID: <b0gsa8$9mt$1@news.unizar.es>
References: <slrnb2je1r.2k2.reinoso@EA4BAO.PLLANO.ESP.EU> <7ae3d00c.0301182333.2daf522e@posting.google.com>
NNTP-Posting-Host: daphne.cps.unizar.es
X-Trace: news.unizar.es 1043068040 9949 155.210.152.20 (20 Jan 2003 13:07:20 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 20 Jan 2003 13:07:20 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))