Skip to content
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

Support for multiple input files with goby log convert #326

Open
jason-jaia opened this issue Aug 27, 2024 · 3 comments
Open

Support for multiple input files with goby log convert #326

jason-jaia opened this issue Aug 27, 2024 · 3 comments

Comments

@jason-jaia
Copy link

I would like to be able to run goby log tool like so: "goby log convert *.goby --format=HDF5"

@tsaubergine
Copy link
Member

The second (optional) command line positional parameter is "outfile":

goby log convert <input_file> [<output_file>] [options]

so there's no way to know the difference between multiple infiles and a specified outfile. I guess we could check for the .goby extension, but it seems trivial to just use a loop

for file in *.goby; do goby log convert $file --format=HDF5; done

@jason-jaia
Copy link
Author

I agree it's trivial to script, but I guess I'm lazy. I also see your point that it breaks the structure of the command, so it seems like the effort/reward balance probably doesn't make sense.

@SBFRF
Copy link

SBFRF commented Sep 20, 2024

for clarity, this for loop is bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants