正如标题所说,
domain='foo.com'
find . -iregex '.*\(html\|htm\)' -printf '%f\0' | \
xargs -0 sed -Ee "s:(http|https)\://(www.|)${domain}::g"
# sed: can't read index.html: No such file or directory
我期待
directory/directory/index.html
不确定 find 发生了什么?