【问题标题】:Find word with conditions in file在文件中查找带有条件的单词
【发布时间】:2015-01-17 12:07:19
【问题描述】:

我想从一个以“i-”开头但它不起作用的文件中查找文本。

egrep '^i-*' temp

但它不起作用。

【问题讨论】:

  • 然后修复它。如果您希望 帮助 这样做,您必须提供更多详细信息。 (这和 nsregularexpression 有什么关系?)
  • 提供temp文件的样本。

标签: regex shell


【解决方案1】:

你可能在说:

egrep '^i-.*' temp

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-20
    • 1970-01-01
    相关资源
    最近更新 更多