🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SED y caracter especial &

#18262
From: Antonio Villalon
Date: Sat, 18 Sep 1999 00:00
22 lines
1612 bytes
=?iso-8859-1?Q?F=E9lix=20Anad=F3n?= (fase@fase.net) wrote:

: quiero sustituir todos los s�mbolos menor que (<) por su equivalente en
: html (&lt;)

Holas,
Para trabajar con ficheros .tex y sustituir los "&" de un texto por los "\&"
de TeX, con sed utilizo 
		cat fichero.txt |sed 's/&/\\&/g' >fichero.tex
Espero que te sirva de ayuda, supongo que con esa secuencia podras escapar
los "&".
Saludos,
			Toni 
--
#############################################################################
#                	Toni Villalon <toni@aiind.upv.es>                   #
#           TELNET andercheran.aiind.upv.es 2895  for PGP Public Key        #
############################################################################# 
# 'When you say "I wrote a program that crashed Windows", people just stare #
#  at you blankly and say "Hey, I got those with the system, *for free*".'  #
# 					Linus Torvalds			    #
############# This .signature is written in 100% recycled bytes #############
Technical Details
Message-ID: <7s0gp7$g5i$2@polaris.cc.upv.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37DE0AF8.4AEE9FE3@fase.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,91be03d50b879594
X-Google-Attributes: gidf86c8,public
From: toni@andercheran.aiind.upv.es (Antonio Villalon)
Subject: Re: SED y caracter especial &
Date: 1999/09/18
Message-ID: <7s0gp7$g5i$2@polaris.cc.upv.es>
X-Deja-AN: 526765955
References: <37DE0AF8.4AEE9FE3@fase.net>
X-Complaints-To: newsmaster@upv.es
X-Trace: polaris.cc.upv.es 937674343 16562 158.42.22.41 (18 Sep 1999 17:05:43 GMT)
Organization: ETSII - Universidad Politecnica de Valencia
NNTP-Posting-Date: 18 Sep 1999 17:05:43 GMT
Newsgroups: es.comp.os.linux.programacion