Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我点击 foo.html find,我想将内容通过管道传回 foo.html
find
find . -iregex '.*\(html\|htm\)' -printf '%P\0' | \ xargs -0 sed -Ee "s:(http|https)\://(www.|)${domain}[?/]::g" \ > # to what? {\} ???
现在它不知道它是什么或在哪里
-i将标志传递给sed,然后它将修改输入文件。
-i
sed
find . -iregex '.*html?' -printf '%P\0' | xargs -0 sed -i -Ee "s:(http|https)\://(www.|)${domain}[?/]::g"