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.
我有以下结构的文件
env1.current/bin/env1/fileName env2.current/bin/env2/fileName env3.current/bin/env3/fileName env4.current/bin/env3/fileName
如何列出所有上述文件?类似于下面的东西?
ls (.*).current/bin/\1/fileName #Doesn't work!
是否可以在 python 中列出这些?glob模块不支持反向引用。