$lst_tit replace$lst_titend$type_both
$(lst_syntax)replace [internal] $emph s1 $emphend by $emph s2 $emphend in $emph
string$emphend<br/>
</tt>»ò <tt>!replace $emph obj$emphend $emph ident$emphend by
$emph s$emphend in $emph string$emphend</tt>
$lst_mean ´®²Ù×÷. <p>
ÔÚµÚÒ»¾äµÄÐÎʽÏÂ, ÏȶÔ.
È»ºóËùÓгöÏÖ×Ó´® $emph s1$emphend µÄµØ·½¶¼Ìæ»»³É $emph s2$emphend. <br/>
Èç¹ûûÓйؼü´Ê $emph internal $emphend,
Ôòµ÷Óà Linux ÃüÁî $emph sed$emphend Íê³ÉÌæ»»,
ËùÒÔÔÚ $emph s1$emphend ºÍ $emph s2$emphend Àï¿É½ÓÊÜÕýÔò±í´ïʽ.
ÏêÇéÇë²Î¿´ $emph sed$emphend µÄ˵Ã÷. <p>
ÔÚµÚ¶þ¾äµÄÐÎʽÏÂ, $emph obj$emphend ¿ÉÒÔÊÇ $emph char$emphend,
$emph word$emphend, $emph item$emphend »ò $emph line$emphend.
¾¹ý¶Ô $emph string$emphend ×÷±äÁ¿Ìæ»»ºó,
$emph string$emphend ÄÚÓë $emph ident$emphend ÏàͬµÄ´Ê¡¢Ïî»òÐб»Ìæ´úΪ
$emph s$emphend. <br/>
$emph ident$emphend ¿ÉÒÔÊÇÒ»¸ö´®, ´ËʱËùÓÐÓë $emph ident$emphend Æ¥ÅäµÄ¶ÔÏó
(´Ê¡¢Ïî»òÐÐ)½«±»Ìæ»». $emph ident$emphend Ò²¿ÉÒÔÊÇÒ»¸öÊý(Õý»ò¸ºÕûÊý $emph n$emphend),
Ç°Ãæ¹ÚÒÔ´Ê $emph number$emphend. Õâʱ±»Ìæ»»µÄÊÇµÚ $emph n$emphend ¸ö¶ÔÏó
(µ± n<0 ʱ, ±»Ìæ»»µÄÊǵ¹ÊýµÚ $emph n$emphend ¸ö¶ÔÏó.)