Jump to content

Commandline Wildcard Character?


Stunner
 Share

Recommended Posts

Ey guys, I have a python script that merges a bunch of files together via the "python fileMerge.py <merged filename> <file(s)>" command in terminal/command-line. I would like to specify all files that have a a file extension of "log". I could do this in terminal with "python fileMerge mergedLog.txt *.log" but when I try doing that in Windows I get a complaint saying that "*.log" is not a file. If anyone could help me with this that would be great. If it were only a handful of files I wanted to specify I would have no problem just typing them out but there are a good 50 or so files I want to merge so that's why this is kind of essential to me. Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy