Passing All Script Argumments To Command

September 24, 2017

If you want to pass all the arguments to a command being called from a script user "$@".

#!/bin/bash

java -jar foo.jar "$@"

Tags: bash