|

楼主 |
发表于 2007-11-22 10:19:39
|
显示全部楼层
sorry,查到了,原来是@在搜索的时候要用原名啊(at sign),答案如下,希望大家也可以用到:
[addr1[,addr2]]s/expr/string/[flags]
Searches the indicated lines for a string of characters matching the expression defined by expr, and replaces that set of characters with string. This command's operation is modified by the g, p, and w file flags.[Table Note 4] If either expr or string includes a slash (/), you must escape the literal slash with a backslash (s/path/path\/file/) or use alternative delimiters such as the at sign (@) or question mark (?). For example, s@path@path/file@ replaces path with path/file. |
|