Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想 grep 之类的东西==> *.sh <==。但它不起作用,我可以 grep 一切,.sh <==但不能让通配符工作。
==> *.sh <==
.sh <==
这里有什么诀窍?
你需要 grep 类似的东西"==> .*\.sh <=="
"==> .*\.sh <=="
该.*部分匹配任何长度的任何字符,该\.部分匹配一个点。
.*
\.