How to divide up?
Roland Smith
rsmith at xs4all.nl
Sun Jul 20 00:45:57 UTC 2008
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080720/db325a46/attachment.pgp
More information about the freebsd-questions
mailing list