Pass ALL Arguments from Bash Script to Another Command

BashScriptingParameter PassingCommand Line-Arguments

Bash Problem Overview


What is the simplest way to grab all the given arguments for a bash script and pass them all into another command within the script? For example:

Command Line:

./runProgram.sh [ARGS HERE]

Script:

#! /bin/bash
cd bin/
java com.myserver.Program [ARGS HERE]

Bash Solutions


Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionUrdaView Question on Stackoverflow