grep for text with wild card in between

痞子三分冷 提交于 2019-12-03 15:22:59

问题


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.

What's the trick here?


回答1:


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

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



来源:https://stackoverflow.com/questions/5906228/grep-for-text-with-wild-card-in-between

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!