summaryrefslogtreecommitdiffstats
path: root/clean.sh
blob: 3f4e92232a31a38ae3f0d7b7681ab0ec7b6495bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

sed -i -e 's/> </></g' \
 -e 's/    /	/g' \
 -e 's/\s+$//g' \
 -e 's/ width="17" height="17" border="0"//g' \
 -e 's/<td [^>]+listhdrr[^>]+>/<th>/g' \
 -e 's/<body[^>]*>//g' \
 -e 's/<\(table\|td\|span\|div\)[^>]\+>/<\1>/g' \
 -e 's/<?php include("fbegin.inc"); ?>//g' \
 -e 's/<?php include("fend.inc"); ?>/<?php include("foot.inc"); ?>/g' \
 -e 's/<?php echo /<?=/g' \
 -e 's/;\?\s*?>/?>/g' \
 -e 's/<?\s*=\s*/<?=/g' \
  $1
OpenPOWER on IntegriCloud