Kleiner Helfer:
#!/bin/bash
# settings:
search='http://remso.eu/';
replacement='/';
# functions:
function doIt {
for file in $(ls -A); do
if [ -f $file ] && [ -w $file ]; then
sed -r -i'.backup' -e "s/${search}/${replacement}/ig" "$file";
fi
if [ -d $file ] && [ -w $file ]; then
dir=$(pwd);
cd $file;
doIt;
cd "${dir}";
fi
done
}
# main:
search=$( echo "${search}" | sed -r 's/\//\\\//g' );
replacement=$( echo ${replacement} | sed -r 's/\//\\\//g' );
doIt;