The Script
Code: Select all
#!/bin/bash
original=$1
cat $original\
|sed"s|<phpbb>|<html>|ig"\
|sed"s|</phpbb>|<html>|ig"\
|sed"s|<privmsg>|<p>|ig"\
|sed"s|</privmsg>|</p>|ig"\
|sed"s|<subject>|<h1>|ig"\
|sed"s|</subject>|</h1>|ig"\
|sed"s|<sender>|<h2>|ig"\
|sed"s|</sender>|</h2>|ig"\
|sed"s|<date>|<h3>|ig"\
|sed"s|</date>|</h3>|ig"\
|sed"s|<message>|<p>|ig"\
|sed"s|</message>|</p>|ig"\
|sed"s|\[quo.*\]|<br><i><b><font color='#00ff00'>|ig"\
|sed"s|\[/quote\]|</font></i></b><br>|ig"\
|sed"s|\[color|<br><font color|ig"\
|sed"s|\[/color\]|</font><br><br>|ig"\
|sed"s|\[|<br><|ig"\
|sed"s|\]|><br>|ig" > $original.html
It should then make an file named"export.xml.html" that you can view in a web browser. I have been using dillo to view the output.