use SED recursively in linux? Click to copyfind . -type f -print0 | xargs -0 sed -i 's/href=\"1\//href=\"\/1\//g'