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.
我正在使用以下内容:
sed 's/oldwebsite.com/newwebsite.com' file.sql
我有:
sed: -e expression #1 unterminated `s' command
我没有正确使用 sed 吗?
编辑:
固定:
sed 's/oldwebsite.com/newwebsite.com/g' file.sql
不管两边都有文字,是否还有一种方法可以替换它?跑到上面,它没有替换任何文本。
您缺少 a/来结束替换:
/
sed 's/oldwebsite.com/newwebsite.com/' file.sql
如果要替换行上的所有匹配项,而不仅仅是第一个匹配项,请在最后一个之后添加g(全局) 。/
g
我正在尝试使用区域标签为电子邮件模板制作一些热点。但关键是我看不到这些热点在哪里。我可以在工作时为这些框分配一些颜色,然后我可以在完成后将它们删除。这就是我所拥有的。我只需要在创建模板时看到它们。
<map name="0.1_Map3"> <area href="" shape="rect" coords="38,