【问题标题】:Find and replace text within a file using commands [closed]使用命令查找和替换文件中的文本 [关闭]
【发布时间】:2017-05-27 18:02:21
【问题描述】:

我想使用 UNIX 命令将文件homedir 中的另一个字符串替换为home/public_html。我该怎么做?

【问题讨论】:

  • 不是编程问题。

标签: linux shell unix command-line operating-system


【解决方案1】:

这已经被问过很多次了。最适合您工作的工具可能是 sed。见this question

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-10-06
    • 2011-10-20
    • 2010-09-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多