projects
/
infodrom.org
/
www.infodrom.org
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
. HTML-Tabellen korrigieren (wml::std::box) mit fix-Target
[infodrom.org/www.infodrom.org]
/
bin
/
fixsuffix
1
#! /bin/bash
2
3
# Fixes file suffix
4
#
5
# .html -> .shtml
6
# Require "<!--#include"
7
#
8
# .html -> .php3
9
# Require "<?"
10
11
for f in $*
12
do
13
if grep -q '<!--[ ]*#include' $f
14
then
15
base=${f%.html}
16
mv -f $f $base.shtml
17
else
18
if grep -q '<?' $f
19
then
20
base=${f%.html}
21
mv -f $f $base.php3
22
fi
23
fi
24
done