Brad Lucas

A blog mostly about programming
September 24, 2017

Passing All Script Argumments To Command

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