How can I invoke a shell command from python which includes regexp (i.e., cat filename*).
I wrote:
pid = subprocess.Popen(["cat", filename + "*"])
but I am getting an error
cat filename* no such file or directory.
I'd like to force the shell to treat "*" as a regexp and not as a string. Is there any way to implement this?
catto open? Could you give an example?