16 lines
166 B
Bash
16 lines
166 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
wort=${1}
|
||
|
shift
|
||
|
ersetzen=${1}
|
||
|
shift
|
||
|
|
||
|
while (( "$(expr $#)" ))
|
||
|
do
|
||
|
sed "s|${wort}|${ersetzen}|g;" $1 > tempdatei
|
||
|
mv tempdatei $1
|
||
|
shift
|
||
|
done
|