-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement glob support for Windows shells (which don't do this themselves) #634
Comments
Can you share the complete command that you're running? |
Since this is not permissible — csvstack --filenames "*.csv" Let's do it in windows command : type "to_append*.csv" | csvstack --filenames "master.csv" - Output is something like : group,header1,header2 Can't figure how to stack a batch of CSVs at one command. |
Why isn't If the file comes from stdin, then it doesn't have a filename. That's just UNIX; csvkit can't fix that. |
Using wildcard file names generates "error: You must specify at least two files to stack." Its seems most csvkit commands do not accept wildcard file arguments. It makes batch csvstack less convenient coz I can't figure out a FOR... DO loop for csvstack. |
That error no longer exists in the current code base. Try the latest csvkit:
I can re-open if it still doesn't work with the latest version. |
It now works with ONE argument 👍 , but if that argument is : INPUT – csvstack "*.csv" Accepting wildcard argument seems to require fundamental program change. |
What operating system are you on? |
UPDATE : Windows command prompt seems not to support wildcard argument. An option to stack all CSVs under a directory is most handy for Windows... |
users may switch to run .sh scripts in windows... shopt -s nullglob done. |
Implements agate.First. Closes wireservice#634
We can do something like Click did: https://github.com/pallets/click/pull/1830/files |
Is there a way to group " *.csv " in a directory by --filenames ? If I pass the CSVs into csvstack using stdin, then their group names become .
Forgive this newbie question.
The text was updated successfully, but these errors were encountered: