convert into UTF-8
fixme avoid overwriting manually tuned .t files and files generated from those .t files.
cd /linux/1/usr/local/apache/htdocs/maruska/
find . \( -name '.xvpics' -prune \) -o \( -name '*.html' -o -regex '.*\.html\.\(en\|it\|cz\|ru\)\(\.t\)?' \) -exec test \( \! -e \
/var/www/maruska/htdocs/{} \) -o /var/www/maruska/htdocs/{} -ot {} \; -print -exec ~/activity/shell/convert-utf8 {} /var/www/maruska/htdocs/{} \;
foreach f ($(grep -l '<form action="/p/go" method="get">' index*html*)) {sed -i -e 's|<form action="/p/go" method="get">|<form action="/cgi/kahua/caratter/show" method="get">|g' $f }
fixme: This does not detect new files!
find \( -name '.xvpics' -prune \) -o \( -name '*.html' -o -regex '.*\.html\.\(en\|it\|cz\|ru\)' \) \
-exec test {} -nt /var/www/maruska/htdocs/{} \; \
-exec ~/activity/shell/convert-utf8 {} /var/www/maruska/htdocs/{} \;
Fixme: should keep the timestamp!
find \( -name '.xvpics' -prune \) -o \( -name '*.html' -o -regex '.*\.html\.\(en\|it\|cz\|ru\)\(\.t\)?' \) \
-exec grep -q 'http://www.ruska.it' {} \; -print \
-exec sed -i -e 's!src="http://www.ruska.it/!src="/!g;s!\(HREF\|href\)="http://www.ruska.it/!href="/!g;s!\(HREF\|href\)="http://www.ruska.it"!href="/"!g;s!href=http://www.ruska.it>!href="/">!g;s!maruska.dyndns.org/ep/!/ep/!g' {} \; -exec touch -r dyndns/{} {} \;
find \( -name '.xvpics' -prune \) -o \( -name '*.html' -o -regex '.*\.html\.\(en\|it\|cz\|ru\)\(\.t\)?' \) -exec grep --color 'http://www.ruska.it' {} \; -print
find \( -name '.xvpics' -prune \) -o \( -name '*.html' -o -regex '.*\.html\.\(en\|it\|cz\|ru\)\(\.t\)?' \) \
-exec grep -q iso-8859-2 {} \; -print -exec /linux/11/x/activity/shell/utf8-file-iso2 {} \;
~/activity/shell/utf8-file-iso2
cd /linux/1/usr/local/apache/htdocs/maruska/
find \( -name '.xvpics' -prune \) -o \( -name '*.ep' \) -exec /x/activity/shell/embperl-2-html {} /var/www/maruska/htdocs/ \;
find \( -name '.emacs_backup' -prune \) -o -name '~' -exec rm -v {} \;