SpectreOS-old/find_and_delete.sh
2018-04-02 04:44:41 +02:00

15 lines
166 B
Bash
Executable file

#!/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