Is there a way to pass multiple arguments in the middle of a command using xargs?
For example, I have a file
javaoptions.txt which contains a default set of Java options. I would like to be able to do something like
xargs -I % java % ClassName < javaoptions.txt
and have it pass all of the options in to one command. If I try doing this, however, it uses several commands, passing one option in each time.
For what it's worth, I cannot modify the source code that is being executed