no recursive replacing with grep and sed ¶ grep -rl oldstring . | xargs sed -i -e 's/olstring/newstring/'