grep for text with wild card in between

后端 未结 1 1113
旧时难觅i
旧时难觅i 2021-02-07 02:22

I would like to grep something like ==> *.sh <==. But it doesn\'t work, I can grep everything up to .sh <== but not get the wild card to work.

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-07 03:00

    You need to grep for something like "==> .*\.sh <=="

    The .* part matches any character for any length, the \. part matches a dot.

    0 讨论(0)
提交回复
热议问题