【问题标题】:How to replace all occurrences of a word in unix/Linux如何替换 unix/Linux 中所有出现的单词
【发布时间】:2016-11-08 19:06:48
【问题描述】:

用另一个词替换一个词,包括那些有大写的词 例如:用袋熊代替大象(包括用袋熊代替大象) 使用单个 emacs 命令

【问题讨论】:

标签: linux unix emacs


【解决方案1】:

只要确保case-replace 不是nil(这是默认值):

(let ((case-replace t))
   (replace-string "elephant" "wombat"))

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多