是说s/A/B/,这样因为A中有/会有问题?用别的分隔符
s#A#B#
s\A\B\
....作者: walkerxk 时间: 2008-11-28 01:07
刚在另一个帖子里面回过:
info sed中的s命令部分:
The syntax of the `s' (as in substitute) command is
`s/REGEXP/REPLACEMENT/FLAGS'. The `/' characters may be uniformly
replaced by any other single character within any given `s' command.
The `/' character (or whatever other character is used in its stead)
can appear in the REGEXP or REPLACEMENT only if it is preceded by a `\'
character.
s后面的任何字符都是分隔符,哪怕是数字或者字母。作者: arccos2002 时间: 2008-11-28 01:23
解决
谢谢楼上几位作者: timdcn 时间: 2008-11-28 08:48