【问题标题】:How to delete a line that contains the dot character using sed如何使用 sed 删除包含点字符的行
【发布时间】:2015-01-21 04:22:36
【问题描述】:

我尝试从文本文件中删除包含. 字符的行。

我尝试了这个命令,但它不起作用:

sed '/./d' input.txt > output.txt

有什么想法吗?

【问题讨论】:

    标签: file text sed text-files


    【解决方案1】:
    sed '/\./d' input.txt > output.txt
    

    我认为你需要避开点。

    【讨论】:

      猜你喜欢
      • 2015-04-08
      • 2015-10-04
      • 2012-03-21
      • 2011-03-26
      • 1970-01-01
      • 1970-01-01
      • 2014-09-29
      • 2019-08-31
      • 1970-01-01
      相关资源
      最近更新 更多