SpectreOS-old/find_and_delete.sh

16 lines
166 B
Bash
Raw Permalink Normal View History

2018-04-02 04:44:41 +02:00
#!/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