I am using a command that takes input of the form
command [-a input_files]*
So I can call
command -a foo or
command -a foo -a bar -a baz.
Now, I am trying to automate a workflow and would like to pass all files in a directory to the command. Is there a way to get a wildcard to do this? I know about
* but this doesn't allow me to insert the mandatory
command * would just execute
command foo bar baz.
Is such an operation possibly natively in bash, or will I need to use sed, etc.?