nsbin/ae_parser-2004-06-17

50 lines
1 KiB
Text
Raw Normal View History

2006-07-20 07:54:37 +00:00
# Date: 15th of March 2k+1
# Last Changed: 17th of June 2k+1
# Author: Nico Schottelius <Nico AT Schottelius DOT Org>
# Description: This script searches for the following strings
# and will substitute them with the right German Characters
#
# _ae_ = <20>
# _ue_ = <20>
# _oe_ = <20>
# _Ae_ = <20>
# _Oe_ = <20>
# _Ue_ = <20>
# _ss_ = <20>
#
if [ $# -lt 1 ]; then
echo `basename $0`': file(s)'
echo 'Hey, hey guy, what to convert ?'
exit 1
fi
for mfile in $@; do
# something other programs do not use
G_STR=".`date +%s%M%U`-`basename $0`-`basename $mfile`"
cat $mfile | sed 's/_ae_/<2F>/g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_ue_/<2F>/g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_oe_/<2F>/g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Ae_/<2F>/g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Ue_/<2F>/g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Oe_/<2F>/g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_ss_/<2F>/g' > $G_STR
mv $G_STR $mfile
done