How to write zsh/python filename expansion with backreferences? -


i have files following structure

env1.current/bin/env1/filename env2.current/bin/env2/filename env3.current/bin/env3/filename env4.current/bin/env3/filename 

how list above files? similar below?

ls (.*).current/bin/\1/filename  #doesn't work! 

is possible in list in python? glob module doesn't support backreferencing.


Comments

Popular posts from this blog

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

python - Received unregistered task using Celery with Django -