On Sat, Jul 19, 2008 at 05:23:48PM -0700, Gary Kline wrote:
> 
> Guys,
> 
> Is there an easyy way of splitting yp these tags into one-per-line?
> I'm not obcessive [[?, :)]], but for what I've got in mind, the tags and stuff
> would look better to my eyes?  ....the outcome of this will go ino a special
> database, not html .
> 
> is there some clever perl one-liner that would help me turn 
> 
> <CENTER><FONT face="Times" size="3"><FONT color="#333366">Realization<BR>
> 
> into
> 
> <CENTER>
> <FONT face="Times" size="3">
> <FONT color="#333366">
> Realization
> <BR>
> ??
> 

Insert a newline in front of every < :

gsed -e "s/</\n</g" <infile >outfile

Note that this requires GNU sed. It won't work with BSD sed.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

Attachment: pgpGR4LfSUxnv.pgp
Description: PGP signature

Reply via email to