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.
我有这样的文件:
level(basic)-[done]1.txt level(basic)-[done]1.pdf level(basic)-[done]1.doc
level(basic)-[done]1.txt
level(basic)-[done]1.pdf
level(basic)-[done]1.doc
我需要按名称找到所有这些。
find * -type f -name 'level(basic)-[done]1.*'
该命令不起作用。我怎样才能转义元字符?
那这个呢?
find * -type f -name 'level(basic)-\[done\]1.*'
也就是说,[用\[. (不需要转义,至少在我的 Ubuntu 12 上是这样。
[
\[
(